Class ComparatorToString<T>
java.lang.Object
info.monitorenter.util.collections.ComparatorToString<T>
- Type Parameters:
T
- the type to compare by
.Object.toString()
- All Implemented Interfaces:
Serializable
,Comparator<T>
A
Comparator
that compares the given Objects by their
Object.toString()
value.
- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares both Objects by theirObject.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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ComparatorToString
public ComparatorToString()Defcon.
-
-
Method Details
-
compare
Compares both Objects by theirObject.toString()
presentation.- Specified by:
compare
in interfaceComparator<T>
- Throws:
IllegalArgumentException
- See Also:
-