Package com.helger.commons.mutable
Class AbstractMutableNumeric<IMPLTYPE extends AbstractMutableNumeric<IMPLTYPE>>
- java.lang.Object
-
- java.lang.Number
-
- com.helger.commons.mutable.AbstractMutableNumeric<IMPLTYPE>
-
- Type Parameters:
IMPLTYPE- Real implementation type
- All Implemented Interfaces:
IComparable<IMPLTYPE>,ICloneable<IMPLTYPE>,IMutableNumeric<IMPLTYPE>,IMutableObject<IMPLTYPE>,INumber,IGenericImplTrait<IMPLTYPE>,Serializable,Comparable<IMPLTYPE>
- Direct Known Subclasses:
AbstractMutableInteger,MutableBigDecimal,MutableBigInteger,MutableDouble,MutableFloat
public abstract class AbstractMutableNumeric<IMPLTYPE extends AbstractMutableNumeric<IMPLTYPE>> extends Number implements IMutableNumeric<IMPLTYPE>
Base implementation class forIMutableNumericextendingNumberclass.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMutableNumeric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidonAfterChange()This method is invoked after a value changed.-
Methods inherited from class java.lang.Number
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.IMutableNumeric
getAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, is0, isGE0, isGT0, isLE0, isLT0, isNot0
-
Methods inherited from interface com.helger.commons.mutable.INumber
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
-
-
-
Method Detail
-
onAfterChange
@OverrideOnDemand protected void onAfterChange()
This method is invoked after a value changed. This method is also called if e.g. an increment of zero happens so no change effectively was performed.
-
-