DCT Lightfoot v3 API specification

java.lang
Class Double

java.lang.Object
  |
  +--java.lang.Double

public class Double
extends Object


Field Summary
static double MAX_VALUE
           
static double MIN_VALUE
           
static double NaN
           
static double NEGATIVE_INFINITY
           
static double POSITIVE_INFINITY
           
 
Constructor Summary
Double(double value)
          Declare constructor
 
Method Summary
 byte byteValue()
          Get the value of this double as a byte (by casting to a byte)
static long doubleToLongBits(double value)
          Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout
 double doubleValue()
          Returns the double value of this double
 boolean equals(Object obj)
          Test if the value of this object equals another objects value
 float floatValue()
          Returns the float value of this double
 int hashCode()
          Returns the hash value for this Double
 int intValue()
          Returns the integer value of this Double (by casting to an int)
 boolean isInfinite()
          Returns true if this Double is infinitely large in magnitude
static boolean isInfinite(double v)
          Returns true if the double passed in is infinitely large in magnitude
 boolean isNaN()
          Returns true if this Double value is the special NaN (Not A Number) value
static boolean isNaN(double v)
          Returns true if the double value passed in is NaN (Not A Number)
static double longBitsToDouble(long bits)
          Returns the double corresponding to a given bit represention.
 long longValue()
          Returns the long value of this Double (by casting to a long)
static double parseDouble(java.lang.String s)
          Returns a new double initialized with the value represented by the specified String
 short shortValue()
          Returns the value of this Double as a short (by casting to a short)
 java.lang.String toString()
          Returns a String representation of this Double
static java.lang.String toString(double d)
          Returns a String representation for the specified double value
static Double valueOf(java.lang.String s)
          Returns the double value represented by the specified String
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final double MAX_VALUE
See Also:
Constant Field Values

MIN_VALUE

public static final double MIN_VALUE
See Also:
Constant Field Values

NaN

public static final double NaN
See Also:
Constant Field Values

NEGATIVE_INFINITY

public static final double NEGATIVE_INFINITY
See Also:
Constant Field Values

POSITIVE_INFINITY

public static final double POSITIVE_INFINITY
See Also:
Constant Field Values
Constructor Detail

Double

public Double(double value)
Declare constructor

Method Detail

byteValue

public byte byteValue()
Get the value of this double as a byte (by casting to a byte)

Returns:
the byte value

doubleToLongBits

public static long doubleToLongBits(double value)
Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout

Returns:
the bits that represent the floating point number

doubleValue

public double doubleValue()
Returns the double value of this double

Returns:
the double value represented by this object

equals

public boolean equals(Object obj)
Test if the value of this object equals another objects value

Overrides:
equals in class Object
Parameters:
obj - The other object
Returns:
true if the object is a valid Double containing the same value as this one

floatValue

public float floatValue()
Returns the float value of this double

Returns:
the float value

hashCode

public int hashCode()
Returns the hash value for this Double

Overrides:
hashCode in class Object
Returns:
the hash value

intValue

public int intValue()
Returns the integer value of this Double (by casting to an int)

Returns:
the int value

isInfinite

public boolean isInfinite()
Returns true if this Double is infinitely large in magnitude

Returns:
true if the value is equal to positive or negative infinity

isInfinite

public static boolean isInfinite(double v)
Returns true if the double passed in is infinitely large in magnitude

Parameters:
v - double to be tested
Returns:
true if the value passed in is equal to positive or negative infinity

isNaN

public boolean isNaN()
Returns true if this Double value is the special NaN (Not A Number) value

Returns:
true if this Float value is NaN

isNaN

public static boolean isNaN(double v)
Returns true if the double value passed in is NaN (Not A Number)

Parameters:
v - the double to be tested
Returns:
true if the value passed in is NaN

longBitsToDouble

public static double longBitsToDouble(long bits)
Returns the double corresponding to a given bit represention.

Returns:
the double corresponding to a given bit represention.

longValue

public long longValue()
Returns the long value of this Double (by casting to a long)

Returns:
the long value

parseDouble

public static double parseDouble(java.lang.String s)
                          throws NumberFormatException
Returns a new double initialized with the value represented by the specified String

Parameters:
s - the string to be parsed
Returns:
the double value represented by the string argument
NumberFormatException

shortValue

public short shortValue()
Returns the value of this Double as a short (by casting to a short)

Returns:
the value of this Double as a short

toString

public java.lang.String toString()
Returns a String representation of this Double

Overrides:
toString in class Object
Returns:
the String representation of this object

toString

public static java.lang.String toString(double d)
Returns a String representation for the specified double value

Parameters:
d - the double to be converted
Returns:
the String representation of the argument

valueOf

public static Double valueOf(java.lang.String s)
                      throws NumberFormatException
Returns the double value represented by the specified String

Parameters:
s - the String to be parsed
Returns:
a newly constructed Double initialized to the value represented by the String argument.
NumberFormatException

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification