Package org.midheaven.lang
Interface LongOrdered
public interface LongOrdered
Defines the contract for Long Ordered.
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(long other) Performs compareTo.default booleanisEqualTo(long other) Checks whether is Equal To.default booleanisGreaterThan(long other) Checks whether is Greater Than.default booleanisGreaterThanOrEqualTo(long other) Checks whether is Greater Than Or Equal To.default booleanisLessThan(long other) Checks whether is Less Than.default booleanisLessThanOrEqualTo(long other) Checks whether is Less Than Or Equal To.
-
Method Details
-
compareTo
int compareTo(long other) Performs compareTo.- Parameters:
other- the other value- Returns:
- the result of compareTo
-
isLessThan
default boolean isLessThan(long other) Checks whether is Less Than.- Parameters:
other- the other value- Returns:
- the result of isLessThan
-
isLessThanOrEqualTo
default boolean isLessThanOrEqualTo(long other) Checks whether is Less Than Or Equal To.- Parameters:
other- the other value- Returns:
- the result of isLessThanOrEqualTo
-
isGreaterThan
default boolean isGreaterThan(long other) Checks whether is Greater Than.- Parameters:
other- the other value- Returns:
- the result of isGreaterThan
-
isGreaterThanOrEqualTo
default boolean isGreaterThanOrEqualTo(long other) Checks whether is Greater Than Or Equal To.- Parameters:
other- the other value- Returns:
- the result of isGreaterThanOrEqualTo
-
isEqualTo
default boolean isEqualTo(long other) Checks whether is Equal To.- Parameters:
other- the other value- Returns:
- the result of isEqualTo
-