java.lang
Class Double

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Double

public final class Double
extends Number


Field Summary
static double MAX_VALUE
           
static double MIN_VALUE
           
static double NaN
           
static double NEGATIVE_INFINITY
           
static double POSITIVE_INFINITY
           
static Class TYPE
           
 
Constructor Summary
Double(double a)
           
Double(String s)
           
 
Method Summary
 byte byteValue()
           
static int compare(double a, double b)
           
static long doubleToLongBits(double value)
           
 double doubleValue()
           
 boolean equals(Object obj)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 boolean isInfinite()
           
static boolean isInfinite(double v)
           
 boolean isNaN()
           
static boolean isNaN(double v)
           
static double longBitsToDouble(long bits)
           
 long longValue()
           
static double parseDouble(String s)
           
 short shortValue()
           
 String toString()
           
static String toString(double d)
           
static Double valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait
 

Field Detail

TYPE

public static final Class TYPE

POSITIVE_INFINITY

public static final double POSITIVE_INFINITY
See Also:
Constant Field Values

NEGATIVE_INFINITY

public static final double NEGATIVE_INFINITY
See Also:
Constant Field Values

NaN

public static final double NaN
See Also:
Constant Field Values

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
Constructor Detail

Double

public Double(double a)

Double

public Double(String s)
       throws NumberFormatException
Throws:
NumberFormatException
Method Detail

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

doubleToLongBits

public static long doubleToLongBits(double value)

doubleValue

public double doubleValue()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

floatValue

public float floatValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

intValue

public int intValue()
Specified by:
intValue in class Number

isInfinite

public boolean isInfinite()

isInfinite

public static boolean isInfinite(double v)

isNaN

public boolean isNaN()

isNaN

public static boolean isNaN(double v)

longBitsToDouble

public static double longBitsToDouble(long bits)

longValue

public long longValue()
Specified by:
longValue in class Number

parseDouble

public static double parseDouble(String s)

shortValue

public short shortValue()
Overrides:
shortValue in class Number

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(double d)

valueOf

public static Double valueOf(String s)
                      throws NumberFormatException
Throws:
NumberFormatException

compare

public static int compare(double a,
                          double b)