API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang. Double View Source
Author(s)
Lee Boynton
Arthur van Hoff
Joseph D. Darcy
Since
JDK1.0
Version
1.100, 04/07/06
Serial
Hierarchy
 Object
      Number
          Double
Implements
 Comparable
Subclasses
Description
publicfinal class Double
  The Double class wraps a value of the primitive type double in an object.
See also:   
Constructors
public Double (double value)
  Constructs a newly allocated Double object that represents the primitive double argument.
public Double (String s) throws NumberFormatException
  Constructs a newly allocated Double object that represents the floating-point value of type double represented by the string.
Methods
Hide/Show inherited methods
public byte byteValue () [Overrides Number]
  Returns the value of this Double as a byte (by casting to a byte).
publicstatic int compare (double d1, double d2)
  Compares the two specified double values.
public int compareTo (Double anotherDouble)
  Compares two Double objects numerically.
publicstatic long doubleToLongBits (double value)
  Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout.
publicstaticnative long doubleToRawLongBits (double value)
  Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout, preserving Not-a-Number (NaN) values.
public double doubleValue () [Specified in Number]
  Returns the double value of this Double object.
public boolean equals (Object obj)
  Compares this object against the specified object.
public float floatValue () [Specified in Number]
  Returns the float value of this Double object.
public int hashCode ()
  Returns a hash code for this Double object.
public int intValue () [Specified in Number]
  Returns the value of this Double as an int (by casting to type int).
public boolean isInfinite ()
  Returns true if this Double value is infinitely large in magnitude, false otherwise.
publicstatic boolean isInfinite (double v)
  Returns true if the specified number is infinitely large in magnitude, false otherwise.
public boolean isNaN ()
  Returns true if this Double value is a Not-a-Number (NaN), false otherwise.
publicstatic boolean isNaN (double v)
  Returns true if the specified number is a Not-a-Number (NaN) value, false otherwise.
publicstaticnative double longBitsToDouble (long bits)
  Returns the double value corresponding to a given bit representation.
public long longValue () [Specified in Number]
  Returns the value of this Double as a long (by casting to type long).
publicstatic double parseDouble (String s) throws NumberFormatException
  Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
public short shortValue () [Overrides Number]
  Returns the value of this Double as a short (by casting to a short).
publicstatic String toHexString (double d)
  Returns a hexadecimal string representation of the double argument.
public String toString ()
  Returns a string representation of this Double object.
publicstatic String toString (double d)
  Returns a string representation of the double argument.
publicstatic Double valueOf (double d)
  Returns a Double instance representing the specified double value.
publicstatic Double valueOf (String s) throws NumberFormatException
  Returns a Double object holding the double value represented by the argument string s.
Fields
Hide/Show inherited fields
publicfinalstatic int MAX_EXPONENT = "1023"
  Maximum exponent a finite double variable may have.
publicfinalstatic double MAX_VALUE = "1.7976931348623157E308"
  A constant holding the largest positive finite value of type double, (2-2-52)·21023.
publicfinalstatic int MIN_EXPONENT = "-1022"
  Minimum exponent a normalized double variable may have.
publicfinalstatic double MIN_NORMAL = "2.2250738585072014E-308"
  A constant holding the smallest positive normal value of type double, 2-1022.
publicfinalstatic double MIN_VALUE = "4.9E-324"
  A constant holding the smallest positive nonzero value of type double, 2-1074.
publicfinalstatic double NaN = "NaN"
  A constant holding a Not-a-Number (NaN) value of type double.
publicfinalstatic double NEGATIVE_INFINITY = "-Infinity"
  A constant holding the negative infinity of type double.
publicfinalstatic double POSITIVE_INFINITY = "Infinity"
  A constant holding the positive infinity of type double.
publicfinalstatic int SIZE = "64"
  The number of bits used to represent a double value.
publicfinalstatic Class<Double> TYPE
  The Class instance representing the primitive type double.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar