Package com.helger.commons.compare
Interface IComparable<DATATYPE>
- Type Parameters:
DATATYPE- The data type to be compared
- All Superinterfaces:
Comparable<DATATYPE>
- All Known Subinterfaces:
IMutableInteger<IMPLTYPE>,IMutableNumeric<IMPLTYPE>,IMutableObject<IMPLTYPE>
- All Known Implementing Classes:
AbstractMutableInteger,AbstractMutableNumeric,Codepoint,MimeType,MutableBigDecimal,MutableBigInteger,MutableBoolean,MutableByte,MutableChar,MutableDouble,MutableFloat,MutableInt,MutableLong,MutableShort,ObjectType,Version,VersionRange
A special interface extension to the
Comparable interface that adds
some default comparison methods.- Since:
- 8.6.3
- Author:
- Philip Helger
-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
isGT
- Parameters:
aOther- value to compare to- Returns:
trueif this value is greater than the provided values,falseif not.- Since:
- 8.6.5
-
isGE
- Parameters:
aOther- value to compare to- Returns:
trueif this value is greater or equal than the provided values,falseif not.- Since:
- 8.6.5
-
isLT
- Parameters:
aOther- value to compare to- Returns:
trueif this value is lower than the provided values,falseif not.- Since:
- 8.6.5
-
isLE
- Parameters:
aOther- value to compare to- Returns:
trueif this value is lower or equal than the provided values,falseif not.- Since:
- 8.6.5
-
isEQ
- Parameters:
aOther- value to compare to- Returns:
trueif the values are equal,falseotherwise.- Since:
- 8.6.5
-
isNE
- Parameters:
aOther- value to compare to- Returns:
trueif the values are not equal,falseotherwise.- Since:
- 8.6.5
-