public class EqualComparator
extends java.lang.Object
implements java.util.Comparator
Constructor and Description |
---|
EqualComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Implements Comparator.compare().
|
java.lang.String |
toString()
Override Object.toString().
|
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- the first objecto2
- the second objectpublic java.lang.String toString()
toString
in class java.lang.Object