Package org.apache.commons.lang3.compare
Class ObjectToStringComparator
- java.lang.Object
-
- org.apache.commons.lang3.compare.ObjectToStringComparator
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<java.lang.Object>
public final class ObjectToStringComparator extends java.lang.Object implements java.util.Comparator<java.lang.Object>, java.io.Serializable
Compares Object'sObject.toString()
values. This class is stateless.- Since:
- 3.10
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectToStringComparator
INSTANCE
Singleton instance.
-
Constructor Summary
Constructors Constructor Description ObjectToStringComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.Object o1, java.lang.Object o2)
-
-
-
Field Detail
-
INSTANCE
public static final ObjectToStringComparator INSTANCE
Singleton instance. This class is stateless.
-
-