|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.monitorenter.util.collections.ComparatorToString<T>
T
- the type to compare by Object.toString()
.public final class ComparatorToString<T>
A Comparator
that compares the given Objects by their
Object.toString()
value.
Constructor Summary | |
---|---|
ComparatorToString()
Defcon. |
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
Compares both Objects by their Object.toString() presentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public ComparatorToString()
Method Detail |
---|
public int compare(T o1, T o2) throws java.lang.IllegalArgumentException
Object.toString()
presentation.
compare
in interface java.util.Comparator<T>
java.lang.IllegalArgumentException
Comparator.compare(java.lang.Object, java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |