com.jeffpalm.util
Class RestrictedNumber.Integer

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

public static class RestrictedNumber.Integer
extends MutableNumber.Integer

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(int val)
           
static RestrictedNumber.Integer newInstance(int val, int lo, int hi)
           
static RestrictedNumber.Integer newZero(int lo, int hi)
           
 
Methods inherited from class com.jeffpalm.util.MutableNumber.Integer
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.Integer newInstance(int val,
                                                   int lo,
                                                   int hi)

newZero

public static RestrictedNumber.Integer newZero(int lo,
                                               int hi)

check

protected void check(int val)
Overrides:
check in class MutableNumber.Integer