| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES |
static int |
MAX_EXPONENT |
static double |
MAX_VALUE |
static int |
MIN_EXPONENT |
static double |
MIN_NORMAL |
static double |
MIN_VALUE |
static double |
NaN |
static double |
NEGATIVE_INFINITY |
static double |
POSITIVE_INFINITY |
static int |
SIZE |
static java.lang.Class<java.lang.Double> |
TYPE |
| Constructor and Description |
|---|
Double4D(double v) |
Double4D(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(double x,
double y)
Behaves like
new Double(x).compareTo(new Double(y)); in
other words this compares two doubles, special casing NaN and zero,
without the overhead of objects. |
int |
compareTo(Double4D o) |
static long |
doubleToLongBits(double value)
Convert the double to the IEEE 754 floating-point "double format" bit
layout.
|
static long |
doubleToRawLongBits(double value)
Convert the double to the IEEE 754 floating-point "double format" bit
layout.
|
double |
doubleValue()
Return the value of this
Number as a float. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
intValue()
Return the value of this
Number as an int. |
boolean |
isInfinite() |
static boolean |
isInfinite(double v) |
boolean |
isNaN() |
static boolean |
isNaN(double v) |
long |
longValue()
Return the value of this
Number as a long. |
static double |
parseDouble(java.lang.String str) |
java.lang.String |
toString() |
static java.lang.String |
toString(double d) |
static Double4D |
valueOf(double d) |
static Double4D |
valueOf(java.lang.String s) |
byteValue, shortValuepublic static final double POSITIVE_INFINITY
public static final double NEGATIVE_INFINITY
public static final double NaN
public static final double MAX_VALUE
public static final double MIN_NORMAL
public static final double MIN_VALUE
public static final int MAX_EXPONENT
public static final int MIN_EXPONENT
public static final int SIZE
public static final int BYTES
public static final java.lang.Class<java.lang.Double> TYPE
public Double4D(double v)
public Double4D(java.lang.String s)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic double doubleValue()
Number4DNumber as a float.doubleValue in class Number4Dpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static Double4D valueOf(double d)
public static Double4D valueOf(java.lang.String s) throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static double parseDouble(java.lang.String str)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static boolean isNaN(double v)
public static boolean isInfinite(double v)
public static java.lang.String toString(double d)
public boolean isInfinite()
public boolean isNaN()
public static long doubleToLongBits(double value)
Double.longBitsToDouble(long) to obtain the original
double value.value - the double to convertdouble#longBitsToDouble(long)public static long doubleToRawLongBits(double value)
Double.longBitsToDouble(long) to obtain the original
double value.value - the double to convertdouble#longBitsToDouble(long)public static int compare(double x,
double y)
new Double(x).compareTo(new Double(y)); in
other words this compares two doubles, special casing NaN and zero,
without the overhead of objects.x - the first double to comparey - the second double to comparepublic int intValue()
Number4DNumber as an int.public long longValue()
Number4DNumber as a long.