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 boolean
greaterThan
(T that) Checks ifthis
is greater thanthat
.default boolean
Checks ifthis
is less thanthat
.default boolean
noGreaterOrLessThan
(T that) Checks ifthis
is equal tothat
.default boolean
noGreaterThan
(T that) Checks ifthis
is less than or equal tothat
.default boolean
noLessThan
(T that) Checks ifthis
is greater than or equal tothat
.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
greaterThan
Checks ifthis
is greater thanthat
.- Parameters:
that
- the other object- Returns:
true
ifthis
is greater thanthat
,false
otherwise- Since:
- 3.3.0
-
noLessThan
Checks ifthis
is greater than or equal tothat
.- Parameters:
that
- the other object- Returns:
true
ifthis
is greater than or equal tothat
,false
otherwise- Since:
- 3.3.0
-
lessThan
Checks ifthis
is less thanthat
.- Parameters:
that
- the other object- Returns:
true
ifthis
is less thanthat
,false
otherwise- Since:
- 3.3.0
-
noGreaterThan
Checks ifthis
is less than or equal tothat
.- Parameters:
that
- the other object- Returns:
true
ifthis
is less than or equal tothat
,false
otherwise- Since:
- 3.3.0
-
noGreaterOrLessThan
Checks ifthis
is equal tothat
.- Parameters:
that
- the other object- Returns:
true
ifthis
is equal tothat
,false
otherwise- Since:
- 3.3.0
-