aima.util
Class MixedRadixNumber

java.lang.Object
  extended by java.lang.Number
      extended by aima.util.MixedRadixNumber
All Implemented Interfaces:
java.io.Serializable

public class MixedRadixNumber
extends java.lang.Number

See Also:
Serialized Form

Constructor Summary
MixedRadixNumber(long value, int[] radixs)
           
MixedRadixNumber(long value, java.util.List<java.lang.Integer> radixs)
           
 
Method Summary
 boolean decrement()
           
 double doubleValue()
           
 float floatValue()
           
 int getCurrentNumeralValue(int atPosition)
           
 long getMaxAllowedValue()
           
 boolean increment()
           
 int intValue()
           
 long longValue()
           
 java.lang.String 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
 

Constructor Detail

MixedRadixNumber

public MixedRadixNumber(long value,
                        int[] radixs)

MixedRadixNumber

public MixedRadixNumber(long value,
                        java.util.List<java.lang.Integer> radixs)
Method Detail

getMaxAllowedValue

public long getMaxAllowedValue()

increment

public boolean increment()

decrement

public boolean decrement()

getCurrentNumeralValue

public int getCurrentNumeralValue(int atPosition)

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object