com.jeffpalm.util
Class RestrictedNumber.Short

java.lang.Object
  extended by java.lang.Number
      extended by com.jeffpalm.util.MutableNumber
          extended by com.jeffpalm.util.MutableNumber.Short
              extended by com.jeffpalm.util.RestrictedNumber.Short
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RestrictedNumber

public static class RestrictedNumber.Short
extends MutableNumber.Short

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jeffpalm.util.MutableNumber
MutableNumber.Byte, MutableNumber.Double, MutableNumber.Float, MutableNumber.Integer, MutableNumber.Long, MutableNumber.Short
 
Method Summary
protected  void check(short val)
           
static RestrictedNumber.Short newInstance(short val, short lo, short hi)
           
static RestrictedNumber.Short newZero(short lo, short hi)
           
 
Methods inherited from class com.jeffpalm.util.MutableNumber.Short
add, add, add, add, add, add, add, dec, div, div, div, div, div, div, div, doubleValue, floatValue, immutableNumber, inc, intValue, longValue, mod, mod, mod, mul, mul, mul, mul, mul, mul, mul, newInstance, newZero, setValue, sub, sub, sub, sub, sub, sub, sub
 
Methods inherited from class com.jeffpalm.util.MutableNumber
toString
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public static RestrictedNumber.Short newInstance(short val,
                                                 short lo,
                                                 short hi)

newZero

public static RestrictedNumber.Short newZero(short lo,
                                             short hi)

check

protected void check(short val)
Overrides:
check in class MutableNumber.Short