Class TFloat
java.lang.Object
java.lang.Number
de.mirkosertic.bytecoder.classlib.java.lang.TFloat
- All Implemented Interfaces:
Serializable
,Comparable<Float>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final float
static final float
private final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static float
binaryExponent
(int n) static int
compare
(float x, float y) int
double
boolean
static int
floatToIntBits
(float value) static int
floatToRawIntBits
(float value) float
int
hashCode()
static float
intBitsToFloat
(int bits) int
intValue()
static boolean
isInfinite
(float aValue) static boolean
isNaN
(float aValue) long
static float
parseFloat
(String aValue) static int
signum
(float value) toString()
static String
toString
(float aValue) static Float
valueOf
(float aValue) static Float
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
TYPE
-
NaN
public static final float NaN- See Also:
-
POSITIVE_INFINITY
public static final float POSITIVE_INFINITY- See Also:
-
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY- See Also:
-
value
-
-
Constructor Details
-
TFloat
public TFloat(float value) -
TFloat
public TFloat(double value)
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
toString
-
equals
-
hashCode
public int hashCode() -
parseFloat
-
valueOf
-
valueOf
-
toString
-
isNaN
public static boolean isNaN(float aValue) -
isInfinite
public static boolean isInfinite(float aValue) -
binaryExponent
private static float binaryExponent(int n) -
floatToRawIntBits
public static int floatToRawIntBits(float value) -
floatToIntBits
public static int floatToIntBits(float value) -
intBitsToFloat
public static float intBitsToFloat(int bits) -
signum
public static int signum(float value) -
compareTo
- Specified by:
compareTo
in interfaceComparable<Float>
-
compare
public static int compare(float x, float y)
-