aima.util
Class MixedRadixNumber
java.lang.Object
java.lang.Number
aima.util.MixedRadixNumber
- All Implemented Interfaces:
- java.io.Serializable
public class MixedRadixNumber
- extends java.lang.Number
- See Also:
- Serialized Form
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 |
MixedRadixNumber
public MixedRadixNumber(long value,
int[] radixs)
MixedRadixNumber
public MixedRadixNumber(long value,
java.util.List<java.lang.Integer> radixs)
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