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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BigDecimalgetAsBigDecimal()default BigIntegergetAsBigInteger()default BytegetAsByte()default CharactergetAsCharacter()default DoublegetAsDouble()default FloatgetAsFloat()default IntegergetAsInteger()default LonggetAsLong()default ShortgetAsShort()booleanis0()booleanisGE0()booleanisGT0()booleanisLE0()booleanisLT0()default booleanisNot0()-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.helger.commons.lang.ICloneable
getClone
-
Methods inherited from interface com.helger.commons.compare.IComparable
isEQ, isGE, isGT, isLE, isLT, isNE
-
Methods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Methods inherited from interface com.helger.commons.mutable.INumber
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
-
-
-
Method Detail
-
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
-
getAsBigInteger
@Nonnull default BigInteger getAsBigInteger()
-
getAsBigDecimal
@Nonnull default BigDecimal getAsBigDecimal()
-
-