~ubuntu-branches/ubuntu/vivid/sablecc/vivid

« back to all changes in this revision

Viewing changes to src/org/sablecc/sablecc/StringComparator.java

  • Committer: Bazaar Package Importer
  • Author(s): Etienne M. Gagnon
  • Date: 2004-01-25 13:28:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040125132801-0so74ui506b30b1q
Tags: 2.18.2-1
* New upstream release.
* Keep the org.sablecc.ant.taskdef.Sablecc ant task of the upstream
  package, closes: #213020.
* Improve man page.
* Update Standards-Version to 3.6.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
public class StringComparator implements Comparator
13
13
{
14
 
    public final static StringComparator instance = new StringComparator();
15
 
 
16
 
    private StringComparator()
17
 
    {
18
 
    }
19
 
 
20
 
    public int compare(Object o1, Object o2)
21
 
    {
22
 
        return ((String) o1).compareTo((String) o2);
23
 
    }
 
14
  public final static StringComparator instance = new StringComparator();
 
15
 
 
16
  private StringComparator()
 
17
  {}
 
18
 
 
19
  public int compare(Object o1, Object o2)
 
20
  {
 
21
    return ((String) o1).compareTo((String) o2);
 
22
  }
24
23
}
25
24