public final class Double extends Number implements Comparable<Double>
Modifier and Type  Field and Description 

static double 
MAX_VALUE
The largest positive finite value of type double.

static double 
MIN_VALUE
The smallest positive value of type double.

static double 
NaN
A NotaNumber (NaN) value of type double.

static double 
NEGATIVE_INFINITY
The negative infinity of type double.

static double 
POSITIVE_INFINITY
The positive infinity of type double.

Constructor and Description 

Double(double value)
Constructs a newly allocated Double object that represents the primitive double argument.

Modifier and Type  Method and Description 

byte 
byteValue()
Returns the value of this Double as a byte (by casting to a byte).

static int 
compare(double d1,
double d2) 
int 
compareTo(Double d)
Compares this object to the specified object to determine their relative
order.

static long 
doubleToLongBits(double value)
Returns a representation of the specified floatingpoint value according to the IEEE 754 floatingpoint "double format" bit layout.

double 
doubleValue()
Returns the double value of this Double.

boolean 
equals(Object obj)
Compares this object against the specified object.

float 
floatValue()
Returns the float value of this Double.

int 
hashCode()
Returns a hashcode for this Double object.

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

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

static boolean 
isInfinite(double v)
Returns true if the specified number is infinitely large in magnitude.

boolean 
isNaN()
Returns true if this Double value is the special NotaNumber (NaN) value.

static boolean 
isNaN(double v)
Returns true if the specified number is the special NotaNumber (NaN) value.

static double 
longBitsToDouble(long bits)
Returns the doublefloat corresponding to a given bit representation.

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

static double 
parseDouble(String s)
Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.

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

String 
toString()
Returns a String representation of this Double object.

static String 
toString(double d)
Creates a string representation of the double argument.

static Double 
valueOf(double i)
Returns the object instance of i

static Double 
valueOf(String s)
Returns a new Double object initialized to the value represented by the specified string.

public static final double MAX_VALUE
public static final double MIN_VALUE
public static final double NaN
public static final double NEGATIVE_INFINITY
public static final double POSITIVE_INFINITY
public Double(double value)
public byte byteValue()
public static long doubleToLongBits(double value)
public double doubleValue()
doubleValue
in class Number
public boolean equals(Object obj)
public float floatValue()
floatValue
in class Number
public int hashCode()
public int intValue()
public boolean isInfinite()
public static boolean isInfinite(double v)
public boolean isNaN()
public static boolean isNaN(double v)
public static double longBitsToDouble(long bits)
public long longValue()
public static double parseDouble(String s) throws NumberFormatException
NumberFormatException
public short shortValue()
shortValue
in class Number
public String toString()
public static String toString(double d)
public static Double valueOf(String s) throws NumberFormatException
NumberFormatException
public static Double valueOf(double i)
i
 the primitivepublic static int compare(double d1, double d2)
public int compareTo(Double d)
Comparable
compareTo
in interface Comparable<Double>
d
 the object to compare to this instance.another
;
a positive integer if this instance is greater than
another
; 0 if this instance has the same order as
another
.