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 SummaryModifier 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.ComparablecompareTo
- 
Method Details- 
greaterThanChecks ifthisis greater thanthat.- Parameters:
- that- the other object
- Returns:
- trueif- thisis greater than- that,- falseotherwise
- Since:
- 3.3.0
 
- 
noLessThanChecks ifthisis greater than or equal tothat.- Parameters:
- that- the other object
- Returns:
- trueif- thisis greater than or equal to- that,- falseotherwise
- Since:
- 3.3.0
 
- 
lessThanChecks ifthisis less thanthat.- Parameters:
- that- the other object
- Returns:
- trueif- thisis less than- that,- falseotherwise
- Since:
- 3.3.0
 
- 
noGreaterThanChecks ifthisis less than or equal tothat.- Parameters:
- that- the other object
- Returns:
- trueif- thisis less than or equal to- that,- falseotherwise
- Since:
- 3.3.0
 
- 
noGreaterOrLessThanChecks ifthisis equal tothat.- Parameters:
- that- the other object
- Returns:
- trueif- thisis equal to- that,- falseotherwise
- Since:
- 3.3.0
 
 
-