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
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 Details

    • ObjectComparator

      public ObjectComparator()
      Deprecated.
      Create a new ObjectComparator.
  • Method Details