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 for
IMutableNumeric extending
Number class.- Author:
- Philip Helger
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method is invoked after a value changed.Methods inherited from class java.lang.Number
byteValue, doubleValue, floatValue, intValue, longValue, shortValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.IMutableNumeric
getAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, is0, isGE0, isGT0, isLE0, isLT0, isNot0Methods inherited from interface com.helger.commons.mutable.INumber
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Constructor Details
-
AbstractMutableNumeric
public AbstractMutableNumeric()
-
-
Method Details
-
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.
-