Package org.plumelib.util
Class UtilPlume.ObjectComparator
java.lang.Object
org.plumelib.util.UtilPlume.ObjectComparator
- All Implemented Interfaces:
Serializable
,Comparator<@Nullable Object>
- Enclosing class:
- UtilPlume
@Deprecated
public static class UtilPlume.ObjectComparator
extends Object
implements Comparator<@Nullable Object>, Serializable
Deprecated.
Attempt to order Objects. Puts null at the beginning. Returns 0 for equal elements. Otherwise,
orders by the result of
toString()
.
Note: if toString returns a nondeterministic value, such as one that depends on the result
of hashCode()
, then this comparator may yield different orderings from run to run of a
program.
- See Also:
-
Constructor Summary
-
Method Summary
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
-
ObjectComparator
public ObjectComparator()Deprecated.Create a new ObjectComparator.
-
-
Method Details
-
compare
Deprecated.- Specified by:
compare
in interfaceComparator<@Nullable Object>
-
StringsPlume.ObjectComparator