DATATYPE - The data type to be comparedpublic interface IComparable<DATATYPE> extends Comparable<DATATYPE>, Serializable
Comparable interface that makes
objects serializable and adds some default comparison methods.| Modifier and Type | Method and Description |
|---|---|
default boolean |
isEQ(DATATYPE aOther) |
default boolean |
isGE(DATATYPE aOther) |
default boolean |
isGT(DATATYPE aOther) |
default boolean |
isLE(DATATYPE aOther) |
default boolean |
isLT(DATATYPE aOther) |
default boolean |
isNE(DATATYPE aOther) |
compareTodefault boolean isGT(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if this value is greater than the provided
values, false if not.default boolean isGE(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if this value is greater or equal than the
provided values, false if not.default boolean isLT(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if this value is lower than the provided values,
false if not.default boolean isLE(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if this value is lower or equal than the provided
values, false if not.default boolean isEQ(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if the values are equal, false
otherwise.Copyright © 2014–2020 Philip Helger. All rights reserved.