public final class Double extends Number implements Comparable<Double>
| Modifier and Type | Field and Description |
|---|---|
static double |
MAX_VALUE |
static double |
MIN_VALUE |
static double |
NaN |
static double |
NEGATIVE_INFINITY |
static double |
POSITIVE_INFINITY |
static Class<Double> |
TYPE |
| Constructor and Description |
|---|
Double(double value) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
static int |
compare(double d1,
double d2) |
int |
compareTo(Double d) |
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(double i) |
static Double |
valueOf(String s) |
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 static long doubleToLongBits(double value)
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic boolean isInfinite()
public static boolean isInfinite(double v)
public boolean isNaN()
public static boolean isNaN(double v)
public static double longBitsToDouble(long bits)
public static double parseDouble(String s) throws NumberFormatException
NumberFormatExceptionpublic short shortValue()
shortValue in class Numberpublic static String toString(double d)
public static Double valueOf(String s) throws NumberFormatException
NumberFormatExceptionpublic static Double valueOf(double i)
public static int compare(double d1,
double d2)
public int compareTo(Double d)
compareTo in interface Comparable<Double>Copyright © 2026. All rights reserved.