public static class ClassDiscovery.StringCompare extends Object implements Comparator<String>, RevisionHandler
Constructor and Description |
---|
StringCompare() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String o1,
String o2)
Compares its two arguments for order.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this Comparator.
|
String |
getRevision()
Returns the revision string.
|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(String o1, String o2)
compare
in interface Comparator<String>
o1
- the first objecto2
- the second objectpublic boolean equals(Object obj)
equals
in interface Comparator<String>
equals
in class Object
obj
- the object to compare with this Comparatorpublic String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.