net.damf.funkson.numbor
Class GPLong

java.lang.Object
  extended by java.lang.Number
      extended by net.damf.funkson.numbor.GPNumber
          extended by net.damf.funkson.numbor.GPLong
All Implemented Interfaces:
java.io.Serializable

public class GPLong
extends GPNumber

See Also:
Serialized Form

Field Summary
static byte NUM_TYPE
           
private  long val
           
 
Fields inherited from class net.damf.funkson.numbor.GPNumber
numType, ONE, ZERO
 
Constructor Summary
GPLong(long x)
           
GPLong(java.lang.Number num)
           
 
Method Summary
protected  void addTo(GPNumber num)
           
static byte compAre(long x, long y)
           
protected  byte compAre0(GPNumber num)
           
protected  void divideBy(GPNumber num)
           
 GPNumber getClone()
           
 java.lang.Number getNumber()
           
 long getVal()
           
 byte meaningVal()
           
static byte meaningVal(long x)
           
protected  void multiplyBy(GPNumber num)
           
protected  void negate()
           
protected  GPNumber remainder0(GPNumber 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
 

Field Detail

NUM_TYPE

public static final byte NUM_TYPE
See Also:
Constant Field Values

val

private long val
Constructor Detail

GPLong

public GPLong(long x)

GPLong

public GPLong(java.lang.Number num)
Method Detail

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)