Package ch.njol.skript.classes
Interface Comparator<T1,T2>
- All Known Implementing Classes:
InverseComparator
Deprecated.
Used to compare two objects of a different or the same type.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Deprecated.static enum
Deprecated. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Compares the given objects which may not be null.boolean
Deprecated.
-
Field Details
-
equalsComparator
Deprecated.
-
-
Method Details
-
compare
Deprecated.Compares the given objects which may not be null. Returning GREATER/SMALLER means that the first parameter is greater/smaller.- Parameters:
o1
- Non-null objecto2
- Non-null object- Returns:
- the relation of the objects. Should neither return GREATER_OR_EQUAL nor SMALLER_OR_EQUAL.
-
supportsOrdering
boolean supportsOrdering()Deprecated.- Returns:
- whether this comparator supports ordering of elements or not.
-
Comparators