MCPcopy Create free account
hub / github.com/davidgiven/luje / Double

Class Double

lib/java/lang/Double.java:26–476  ·  view source on GitHub ↗

The wrapper for the primitive type double. @see java.lang.Number @since 1.0

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getComponentTypeMethod · 0.80
getClassMethod · 0.80

Tested by

no test coverage detected