net.damf.funkson.numbor
Class GPLong
java.lang.Object
java.lang.Number
net.damf.funkson.numbor.GPNumber
net.damf.funkson.numbor.GPLong
- All Implemented Interfaces:
- java.io.Serializable
public class GPLong
- extends GPNumber
- See Also:
- Serialized Form
Constructor Summary |
GPLong(long x)
|
GPLong(java.lang.Number num)
|
Methods inherited from class net.damf.funkson.numbor.GPNumber |
bigDecValue, bigIntValue, clone, compAre, converToString, doubleValue, floatValue, getDiff, getNegated, getNumType, getProduct, getQuotient, getSum, highNumType, highNumType, intValue, longValue, makeGPNum, numTypeOf, remainder, toBigDec, toBigInt, truncate, typeTo |
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_TYPE
public static final byte NUM_TYPE
- See Also:
- Constant Field Values
val
private long val
GPLong
public GPLong(long x)
GPLong
public GPLong(java.lang.Number num)
getClone
public GPNumber getClone()
- Specified by:
getClone
in class GPNumber
getVal
public long getVal()
getNumber
public java.lang.Number getNumber()
- Specified by:
getNumber
in class GPNumber
meaningVal
public byte meaningVal()
- Specified by:
meaningVal
in class GPNumber
compAre0
protected byte compAre0(GPNumber num)
- Specified by:
compAre0
in class GPNumber
negate
protected void negate()
- Specified by:
negate
in class GPNumber
addTo
protected void addTo(GPNumber num)
- Specified by:
addTo
in class GPNumber
multiplyBy
protected void multiplyBy(GPNumber num)
- Specified by:
multiplyBy
in class GPNumber
divideBy
protected void divideBy(GPNumber num)
- Specified by:
divideBy
in class GPNumber
remainder0
protected GPNumber remainder0(GPNumber num)
- Specified by:
remainder0
in class GPNumber
meaningVal
public static byte meaningVal(long x)
compAre
public static byte compAre(long x,
long y)