Class NaturalComparator<T>
java.lang.Object
io.vavr.collection.NaturalComparator<T>
- All Implemented Interfaces:
Serializable, Comparator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NaturalComparator<?> private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()(package private) static <T> NaturalComparator<T> instance()private ObjectInstance control for object serialization.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
-
Constructor Details
-
NaturalComparator
private NaturalComparator()
-
-
Method Details
-
instance
-
compare
- Specified by:
comparein interfaceComparator<T>
-
equals
-
hashCode
-
readResolve
Instance control for object serialization.- Returns:
- The singleton instance of NaturalComparator.
- See Also:
-