java.lang
Class Double
java.lang.Object
java.lang.Number
java.lang.Double
public final class Double
- extends Number
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
Double
public Double(double a)
Double
public Double(String s)
throws NumberFormatException
- Throws:
NumberFormatException
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)