info.monitorenter.util.collections
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:
- java.io.Serializable, java.util.Comparator<T>
public final class ComparatorToString<T> extends java.lang.Object implements java.util.Comparator<T>, java.io.SerializableAComparatorthat compares the given Objects by theirObject.toString()value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ComparatorToString()Defcon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(T o1, T o2)Compares both Objects by theirObject.toString()presentation.
-
-
-
Method Detail
-
compare
public int compare(T o1, T o2) throws java.lang.IllegalArgumentException
Compares both Objects by theirObject.toString()presentation.- Specified by:
comparein interfacejava.util.Comparator<T>- Throws:
java.lang.IllegalArgumentException- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
-
-
DMelt 3.0 © DataMelt by jWork.ORG