net.sf.plist
Class NSReal

java.lang.Object
  extended by net.sf.plist.NSObject
      extended by net.sf.plist.NSNumber
          extended by net.sf.plist.NSReal

public class NSReal
extends NSNumber

Represents an real number of 64 bits in size.

In this implementation, a primitive double is used to represent the NSReal.

See Also:
Double

Constructor Summary
NSReal(double theDouble)
          Constructor.
 
Method Summary
 double getDouble()
          Get the contents of this object as a double.
 Double getValue()
          Get the unmodifiable value of this object.
 Double number()
          Get the contents of this object as a Number.
 
Methods inherited from class net.sf.plist.NSNumber
createInstance
 
Methods inherited from class net.sf.plist.NSObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSReal

public NSReal(double theDouble)
Constructor.

Parameters:
theDouble - value of the new object
Method Detail

getValue

public Double getValue()
Get the unmodifiable value of this object.

Overrides:
getValue in class NSNumber
Returns:
the value of this object
See Also:
getDouble()

getDouble

public double getDouble()
Get the contents of this object as a double.

Returns:
the double

number

public Double number()
Get the contents of this object as a Number.

Specified by:
number in class NSNumber
Returns:
the Number