Package org.teavm.classlib.java.lang
Class TDouble
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TDouble
- All Implemented Interfaces:
TSerializable
,TComparable<TDouble>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final double
static final int
static final double
static final double
static final double
static final double
static final double
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(double a, double b) int
static long
doubleToLongBits
(double value) static long
doubleToRawLongBits
(double value) double
boolean
float
int
hashCode()
static int
hashCode
(double d) int
intValue()
static boolean
isFinite
(double v) boolean
static boolean
isInfinite
(double v) boolean
isNaN()
static boolean
isNaN
(double v) static double
longBitsToDouble
(long bits) long
static double
parseDouble
(String string) static String
toHexString
(double d) toString()
static String
toString
(double d) static TDouble
valueOf
(double d) static TDouble
Methods inherited from class org.teavm.classlib.java.lang.TNumber
byteValue, shortValue
-
Field Details
-
POSITIVE_INFINITY
public static final double POSITIVE_INFINITY- See Also:
-
NEGATIVE_INFINITY
public static final double NEGATIVE_INFINITY- See Also:
-
NaN
public static final double NaN- See Also:
-
MAX_VALUE
public static final double MAX_VALUE- See Also:
-
MIN_NORMAL
public static final double MIN_NORMAL- See Also:
-
MIN_VALUE
public static final double MIN_VALUE- See Also:
-
MAX_EXPONENT
public static final int MAX_EXPONENT- See Also:
-
MIN_EXPONENT
public static final int MIN_EXPONENT- See Also:
-
SIZE
public static final int SIZE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
TYPE
-
-
Constructor Details
-
TDouble
public TDouble(double value) -
TDouble
- Throws:
TNumberFormatException
-
-
Method Details
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classTNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classTNumber
-
valueOf
-
toString
-
valueOf
-
parseDouble
- Throws:
NumberFormatException
-
toString
-
equals
-
hashCode
public int hashCode() -
hashCode
public static int hashCode(double d) -
compare
public static int compare(double a, double b) -
compareTo
- Specified by:
compareTo
in interfaceTComparable<TDouble>
-
isNaN
public boolean isNaN() -
isInfinite
public boolean isInfinite() -
isNaN
public static boolean isNaN(double v) -
isInfinite
public static boolean isInfinite(double v) -
isFinite
public static boolean isFinite(double v) -
doubleToRawLongBits
public static long doubleToRawLongBits(double value) -
doubleToLongBits
public static long doubleToLongBits(double value) -
longBitsToDouble
public static double longBitsToDouble(long bits) -
toHexString
-