uk.ac.liv.util
Class UntypedDouble

java.lang.Object
  extended byjava.lang.Number
      extended byuk.ac.liv.util.UntypedNumber
          extended byuk.ac.liv.util.UntypedDouble
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class UntypedDouble
extends UntypedNumber

Faster version of java.lang.Double.

Version:
$Revision: 1.2 $
Author:
Steve Phelps
See Also:
Serialized Form

Constructor Summary
UntypedDouble()
           
UntypedDouble(double value)
           
UntypedDouble(java.lang.Double 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  void setValue(double value)
           
 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

UntypedDouble

public UntypedDouble()

UntypedDouble

public UntypedDouble(java.lang.Double value)

UntypedDouble

public UntypedDouble(double 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

intValue

public int intValue()

floatValue

public float floatValue()

doubleValue

public double doubleValue()

longValue

public long longValue()

compareTo

public int compareTo(java.lang.Object other)

equals

public boolean equals(java.lang.Object other)

toString

public java.lang.String toString()

setValue

protected void setValue(double value)