Package ch.njol.skript.classes
Class InverseComparator<T1,T2>
java.lang.Object
ch.njol.skript.classes.InverseComparator<T1,T2>
- All Implemented Interfaces:
Comparator<T1,T2>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.skript.classes.Comparator
Comparator.ComparatorInfo<T1,T2>, Comparator.Relation
-
Field Summary
Fields inherited from interface ch.njol.skript.classes.Comparator
equalsComparator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompares the given objects which may not be null.boolean
toString()
-
Constructor Details
-
InverseComparator
-
-
Method Details
-
compare
Description copied from interface:Comparator
Compares the given objects which may not be null. Returning GREATER/SMALLER means that the first parameter is greater/smaller.- Specified by:
compare
in interfaceComparator<T1,T2>
- 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
public boolean supportsOrdering()- Specified by:
supportsOrdering
in interfaceComparator<T1,T2>
- Returns:
- whether this comparator supports ordering of elements or not.
-
toString
-