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 intstatic final intstatic final doublestatic final intstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(double a, double b) intstatic longdoubleToLongBits(double value) static longdoubleToRawLongBits(double value) doublebooleanfloatinthashCode()static inthashCode(double d) intintValue()static booleanisFinite(double v) booleanstatic booleanisInfinite(double v) booleanisNaN()static booleanisNaN(double v) static doublelongBitsToDouble(long bits) longstatic doubleparseDouble(String string) static StringtoHexString(double d) toString()static StringtoString(double d) static TDoublevalueOf(double d) static TDoubleMethods 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:
doubleValuein classTNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValuein 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:
compareToin 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
-