The wrapper for the primitive type float. @see java.lang.Number @since 1.0
| 24 | * @since 1.0 |
| 25 | */ |
| 26 | public final class Float extends Number implements Comparable<Float> { |
| 27 | |
| 28 | private static final long serialVersionUID = -2671257302660747028L; |
| 29 | |
| 30 | /** |
| 31 | * The value which the receiver represents. |
| 32 | */ |
| 33 | private final float value; |
| 34 | |
| 35 | /** |
| 36 | * Constant for the maximum {@code float} value, (2 - 2<sup>-23</sup>) * 2<sup>127</sup>. |
| 37 | */ |
| 38 | public static final float MAX_VALUE = 3.40282346638528860e+38f; |
| 39 | |
| 40 | /** |
| 41 | * Constant for the minimum {@code float} value, 2<sup>-149</sup>. |
| 42 | */ |
| 43 | public static final float MIN_VALUE = 1.40129846432481707e-45f; |
| 44 | |
| 45 | /** |
| 46 | * Constant for the Not-a-Number (NaN) value of the {@code float} type. |
| 47 | */ |
| 48 | public static final float NaN = 0.0f / 0.0f; |
| 49 | |
| 50 | /** |
| 51 | * Constant for the Positive Infinity value of the {@code float} type. |
| 52 | */ |
| 53 | public static final float POSITIVE_INFINITY = 1.0f / 0.0f; |
| 54 | |
| 55 | /** |
| 56 | * Constant for the Negative Infinity value of the {@code float} type. |
| 57 | */ |
| 58 | public static final float NEGATIVE_INFINITY = -1.0f / 0.0f; |
| 59 | |
| 60 | /** |
| 61 | * The {@link Class} object that represents the primitive type {@code |
| 62 | * float}. |
| 63 | * |
| 64 | * @since 1.1 |
| 65 | */ |
| 66 | @SuppressWarnings("unchecked") |
| 67 | public static final Class<Float> TYPE = (Class<Float>) new float[0] |
| 68 | .getClass().getComponentType(); |
| 69 | |
| 70 | // Note: This can't be set to "float.class", since *that* is |
| 71 | // defined to be "java.lang.Float.TYPE"; |
| 72 | |
| 73 | /** |
| 74 | * Constant for the number of bits needed to represent a {@code float} in |
| 75 | * two's complement form. |
| 76 | * |
| 77 | * @since 1.5 |
| 78 | */ |
| 79 | public static final int SIZE = 32; |
| 80 | |
| 81 | /** |
| 82 | * Constructs a new {@code Float} with the specified primitive float value. |
| 83 | * |
nothing calls this directly
no test coverage detected