net.sourceforge.jabm.util
Class UntypedLong

java.lang.Object
  extended by java.lang.Number
      extended by net.sourceforge.jabm.util.UntypedNumber
          extended by net.sourceforge.jabm.util.UntypedLong
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class UntypedLong
extends UntypedNumber
implements java.io.Serializable

Faster version of java.lang.Long.

See Also:
Serialized Form
 

Constructor Summary
UntypedLong()
           
UntypedLong(long value)
           
UntypedLong(java.lang.Long value)
           
 
Method Summary
 UntypedNumber add(UntypedNumber other)
           
 int compareTo(java.lang.Object other)
           
 UntypedNumber divide(UntypedNumber other)
           
 double doubleValue()
           
 boolean equals(java.lang.Object other)
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 UntypedNumber multiply(UntypedNumber other)
           
protected  UntypedNumber opResult(double tempResult)
           
 UntypedNumber subtract(UntypedNumber other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UntypedLong

public UntypedLong()

UntypedLong

public UntypedLong(java.lang.Long value)

UntypedLong

public UntypedLong(long value)
Method Detail

add

public UntypedNumber add(UntypedNumber other)
Specified by:
add in class UntypedNumber

multiply

public UntypedNumber multiply(UntypedNumber other)
Specified by:
multiply in class UntypedNumber

subtract

public UntypedNumber subtract(UntypedNumber other)
Specified by:
subtract in class UntypedNumber

divide

public UntypedNumber divide(UntypedNumber other)
Specified by:
divide in class UntypedNumber

opResult

protected UntypedNumber opResult(double tempResult)

compareTo

public int compareTo(java.lang.Object other)
Specified by:
compareTo in interface java.lang.Comparable

intValue

public int intValue()
Specified by:
intValue 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

longValue

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

toString

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

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object