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 |
isEqualTo(DATATYPE aOther)
Deprecated.
Use
isEQ(Object) instead |
default boolean |
isGE(DATATYPE aOther) |
default boolean |
isGreaterOrEqualThan(DATATYPE aOther)
Deprecated.
Use
isGE(Object) instead |
default boolean |
isGreaterThan(DATATYPE aOther)
Deprecated.
Use
isGT(Object) instead |
default boolean |
isGT(DATATYPE aOther) |
default boolean |
isLE(DATATYPE aOther) |
default boolean |
isLowerOrEqualThan(DATATYPE aOther)
Deprecated.
Use
isLE(Object) instead |
default boolean |
isLowerThan(DATATYPE aOther)
Deprecated.
Use
isLT(Object) instead |
default boolean |
isLT(DATATYPE aOther) |
default boolean |
isNE(DATATYPE aOther) |
compareTo@Deprecated default boolean isGreaterThan(@Nonnull DATATYPE aOther)
isGT(Object) insteadaOther - value to compare totrue if this value is greater than the provided
values, false if not.default boolean isGT(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if this value is greater than the provided
values, false if not.@Deprecated default boolean isGreaterOrEqualThan(@Nonnull DATATYPE aOther)
isGE(Object) insteadaOther - value to compare totrue if this value is greater or equal 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.@Deprecated default boolean isLowerThan(@Nonnull DATATYPE aOther)
isLT(Object) insteadaOther - value to compare totrue if this value is lower 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.@Deprecated default boolean isLowerOrEqualThan(@Nonnull DATATYPE aOther)
isLE(Object) insteadaOther - value to compare totrue if this value is lower or equal 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.@Deprecated default boolean isEqualTo(@Nonnull DATATYPE aOther)
isEQ(Object) insteadaOther - value to compare totrue if the values are equal, false
otherwise.default boolean isEQ(@Nonnull DATATYPE aOther)
aOther - value to compare totrue if the values are equal, false
otherwise.Copyright © 2014–2017 Philip Helger. All rights reserved.