Package com.helger.commons.mutable
Interface IMutableNumeric<IMPLTYPE extends IMutableNumeric<IMPLTYPE>>
- Type Parameters:
IMPLTYPE- Implementation type
- All Superinterfaces:
Comparable<IMPLTYPE>,ICloneable<IMPLTYPE>,IComparable<IMPLTYPE>,IGenericImplTrait<IMPLTYPE>,IMutableObject<IMPLTYPE>,INumber
- All Known Subinterfaces:
IMutableInteger<IMPLTYPE>
- All Known Implementing Classes:
AbstractMutableInteger,AbstractMutableNumeric,MutableBigDecimal,MutableBigInteger,MutableByte,MutableChar,MutableDouble,MutableFloat,MutableInt,MutableLong,MutableShort
public interface IMutableNumeric<IMPLTYPE extends IMutableNumeric<IMPLTYPE>>
extends IMutableObject<IMPLTYPE>, INumber
Base interface for mutable numeric values
- Author:
- Philip Helger
-
Method Summary
Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.helger.commons.lang.ICloneable
getCloneMethods inherited from interface com.helger.commons.compare.IComparable
isEQ, isGE, isGT, isLE, isLT, isNEMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.mutable.INumber
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Method Details
-
is0
boolean is0()- Returns:
trueif the value is 0
-
isNot0
default boolean isNot0()- Returns:
trueif the value is not 0
-
isLT0
boolean isLT0()- Returns:
trueif the value is < 0
-
isLE0
boolean isLE0()- Returns:
trueif the value is ≤ 0
-
isGT0
boolean isGT0()- Returns:
trueif the value is > 0
-
isGE0
boolean isGE0()- Returns:
trueif the value is ≥ 0
-
getAsByte
-
getAsCharacter
-
getAsDouble
-
getAsFloat
-
getAsInteger
-
getAsLong
-
getAsShort
-
getAsBigInteger
-
getAsBigDecimal
-