Package java.lang
Class Double
- java.lang.Object
-
- java.lang.Number
-
- java.lang.Double
-
- All Implemented Interfaces:
Serializable
,Comparable
public final class Double extends Number implements Comparable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static double
MAX_VALUE
static double
MIN_VALUE
static double
NaN
static double
NEGATIVE_INFINITY
static double
POSITIVE_INFINITY
static Class
TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(Double var0)
int
compareTo(Object var0)
static long
doubleToLongBits(double var0)
static long
doubleToRawLongBits(double var0)
double
doubleValue()
boolean
equals(Object var0)
float
floatValue()
int
hashCode()
int
intValue()
boolean
isInfinite()
static boolean
isInfinite(double var0)
boolean
isNaN()
static boolean
isNaN(double var0)
static double
longBitsToDouble(long var0)
long
longValue()
static double
parseDouble(String var0)
short
shortValue()
String
toString()
static String
toString(double var0)
static Double
valueOf(String var0)
-
-
-
Field Detail
-
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
-
NaN
public static final double NaN
- See Also:
- Constant Field Values
-
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
-
TYPE
public static final Class TYPE
-
-
Constructor Detail
-
Double
public Double(double var0)
-
Double
public Double(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
-
Method Detail
-
compareTo
public int compareTo(Double var0)
-
compareTo
public int compareTo(Object var0)
- Specified by:
compareTo
in interfaceComparable
-
doubleToLongBits
public static long doubleToLongBits(double var0)
-
doubleToRawLongBits
public static long doubleToRawLongBits(double var0)
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
isInfinite
public boolean isInfinite()
-
isInfinite
public static boolean isInfinite(double var0)
-
isNaN
public boolean isNaN()
-
isNaN
public static boolean isNaN(double var0)
-
longBitsToDouble
public static double longBitsToDouble(long var0)
-
parseDouble
public static double parseDouble(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classNumber
-
toString
public static String toString(double var0)
-
valueOf
public static Double valueOf(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
-