public final class ObjectToStringComparator extends Object implements Comparator<Object>, Serializable
Object.toString()
values.
This class is stateless.Modifier and Type | Field and Description |
---|---|
static ObjectToStringComparator |
INSTANCE
Singleton instance.
|
Constructor and Description |
---|
ObjectToStringComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final ObjectToStringComparator INSTANCE
public int compare(Object o1, Object o2)
compare
in interface Comparator<Object>
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.