java.lang.Double (JDK 1.0)
This class provides an immutable object wrapper around the double primitive data type. valueOf() converts a string to a Double, doubleValue() returns the primitive double value of a Double object, and there are other methods for returning a Double value as a variety of other primitive types.
This class also provides some useful constants and static methods for testing double values. MIN_VALUE and MAX_VALUE are the smallest (closest to zero) and largest representable double values. isInfinite() in class method and instance method forms tests whether a double or a Double has an infinite value. Similarly, isNaN() tests whether a double or Double is not-a-number--this is a comparison that cannot be done directly because the NaN constant never tests equal to any other value, including itself. doubleToLongBits() and longBitsToDouble() allow you to manipulate the bit representation of a double directly.
public final classDoubleextends Number { //Public ConstructorspublicDouble(doublevalue); publicDouble(Strings) throws NumberFormatException; //Constantspublic static final doubleMAX_VALUE; public static final doubleMIN_VALUE; public static final doubleNEGATIVE_INFINITY; public static final doubleNaN; public static final doublePOSITIVE_INFINITY; 1.1public static final ClassTYPE; //Class Methodspublic static native longdoubleToLongBits(doublevalue); public static booleanisInfinite(doublev); public static booleanisNaN(doublev); public static native doublelongBitsToDouble(longbits); public static StringtoString(doubled); public static DoublevalueOf(Strings) throws NumberFormatException; //Public Instance Methods1.1public bytebyteValue(); //Overrides Numberpublic doubledoubleValue(); //Defines Numberpublic booleanequals(Objectobj); //Overrides Objectpublic floatfloatValue(); //Defines Numberpublic inthashCode(); //Overrides Objectpublic intintValue(); //Defines Numberpublic booleanisInfinite(); public booleanisNaN(); public longlongValue(); //Defines Number1.1public shortshortValue(); //Overrides Numberpublic StringtoString(); //Overrides Object}
Hierarchy:
Object->Number(Serializable)->Double
Returned By:
Double.valueOf()