Package com.velocitypowered.api.util
Interface Ordered<T>
- Type Parameters:
T- the type
- All Superinterfaces:
Comparable<T>
- All Known Implementing Classes:
IdentifiedKey.Revision,ProtocolVersion
Something that is ordered.
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleangreaterThan(T that) Checks ifthisis greater thanthat.default booleanChecks ifthisis less thanthat.default booleannoGreaterOrLessThan(T that) Checks ifthisis equal tothat.default booleannoGreaterThan(T that) Checks ifthisis less than or equal tothat.default booleannoLessThan(T that) Checks ifthisis greater than or equal tothat.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
greaterThan
Checks ifthisis greater thanthat.- Parameters:
that- the other object- Returns:
trueifthisis greater thanthat,falseotherwise- Since:
- 3.3.0
-
noLessThan
Checks ifthisis greater than or equal tothat.- Parameters:
that- the other object- Returns:
trueifthisis greater than or equal tothat,falseotherwise- Since:
- 3.3.0
-
lessThan
Checks ifthisis less thanthat.- Parameters:
that- the other object- Returns:
trueifthisis less thanthat,falseotherwise- Since:
- 3.3.0
-
noGreaterThan
Checks ifthisis less than or equal tothat.- Parameters:
that- the other object- Returns:
trueifthisis less than or equal tothat,falseotherwise- Since:
- 3.3.0
-
noGreaterOrLessThan
Checks ifthisis equal tothat.- Parameters:
that- the other object- Returns:
trueifthisis equal tothat,falseotherwise- Since:
- 3.3.0
-