java.lang
Class Double
java.lang.Object
|
+--java.lang.Number
|
+--java.lang.Double
- All Implemented Interfaces:
- Comparable, java.io.Serializable
- public final synchronized class Double
- extends Number
- implements Comparable
- See Also:
- Serialized Form
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
TYPE
public static final Class TYPE
value
private double value
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
Double
public Double(double)
Double
public Double(String)
throws NumberFormatException
toString
public static String toString(double)
valueOf
public static Double valueOf(String)
throws NumberFormatException
NumberFormatException
parseDouble
public static double parseDouble(String)
throws NumberFormatException
NumberFormatException
isNaN
public static boolean isNaN(double)
isInfinite
public static boolean isInfinite(double)
isNaN
public boolean isNaN()
isInfinite
public boolean isInfinite()
toString
public String toString()
- Overrides:
toString
in class Object
byteValue
public byte byteValue()
- Overrides:
byteValue
in class Number
shortValue
public short shortValue()
- Overrides:
shortValue
in class Number
intValue
public int intValue()
- Specified by:
intValue
in class Number
longValue
public long longValue()
- Specified by:
longValue
in class Number
floatValue
public float floatValue()
- Specified by:
floatValue
in class Number
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in class Number
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object)
- Overrides:
equals
in class Object
doubleToLongBits
public static long doubleToLongBits(double)
doubleToRawLongBits
public static long doubleToRawLongBits(double)
longBitsToDouble
public static double longBitsToDouble(long)
compareTo
public int compareTo(Double)
compareTo
public int compareTo(Object)
- Specified by:
compareTo
in interface Comparable
compare
public static int compare(double,
double)
static void ()