blob: 8f565fc1e3b6620c5415ce91fbe9d3cd993a0735 [file] [log] [blame]
Aurimas Liutikas88c7ff12023-08-10 12:42:26 -07001/*
2 * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27package java.lang;
28
29
30@SuppressWarnings({"unchecked", "deprecation", "all"})
31public final class Double extends java.lang.Number implements java.lang.Comparable<java.lang.Double> {
32
33public Double(double value) { throw new RuntimeException("Stub!"); }
34
35public Double(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
36
37@libcore.util.NonNull public static java.lang.String toString(double d) { throw new RuntimeException("Stub!"); }
38
39@libcore.util.NonNull public static java.lang.String toHexString(double d) { throw new RuntimeException("Stub!"); }
40
41@libcore.util.NonNull public static java.lang.Double valueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
42
43@libcore.util.NonNull public static java.lang.Double valueOf(double d) { throw new RuntimeException("Stub!"); }
44
45public static double parseDouble(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
46
47public static boolean isNaN(double v) { throw new RuntimeException("Stub!"); }
48
49public static boolean isInfinite(double v) { throw new RuntimeException("Stub!"); }
50
51public static boolean isFinite(double d) { throw new RuntimeException("Stub!"); }
52
53public boolean isNaN() { throw new RuntimeException("Stub!"); }
54
55public boolean isInfinite() { throw new RuntimeException("Stub!"); }
56
57@libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
58
59public byte byteValue() { throw new RuntimeException("Stub!"); }
60
61public short shortValue() { throw new RuntimeException("Stub!"); }
62
63public int intValue() { throw new RuntimeException("Stub!"); }
64
65public long longValue() { throw new RuntimeException("Stub!"); }
66
67public float floatValue() { throw new RuntimeException("Stub!"); }
68
69public double doubleValue() { throw new RuntimeException("Stub!"); }
70
71public int hashCode() { throw new RuntimeException("Stub!"); }
72
73public static int hashCode(double value) { throw new RuntimeException("Stub!"); }
74
75public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
76
77public static long doubleToLongBits(double value) { throw new RuntimeException("Stub!"); }
78
79public static native long doubleToRawLongBits(double value);
80
81public static native double longBitsToDouble(long bits);
82
83public int compareTo(@libcore.util.NonNull java.lang.Double anotherDouble) { throw new RuntimeException("Stub!"); }
84
85public static int compare(double d1, double d2) { throw new RuntimeException("Stub!"); }
86
87public static double sum(double a, double b) { throw new RuntimeException("Stub!"); }
88
89public static double max(double a, double b) { throw new RuntimeException("Stub!"); }
90
91public static double min(double a, double b) { throw new RuntimeException("Stub!"); }
92
93public static final int BYTES = 8; // 0x8
94
95public static final int MAX_EXPONENT = 1023; // 0x3ff
96
97public static final double MAX_VALUE = 1.7976931348623157E308;
98
99public static final int MIN_EXPONENT = -1022; // 0xfffffc02
100
101public static final double MIN_NORMAL = 2.2250738585072014E-308;
102
103public static final double MIN_VALUE = 4.9E-324;
104
105public static final double NEGATIVE_INFINITY = (-1.0/0.0);
106
107public static final double NaN = (0.0/0.0);
108
109public static final double POSITIVE_INFINITY = (1.0/0.0);
110
111public static final int SIZE = 64; // 0x40
112
113public static final java.lang.Class<java.lang.Double> TYPE;
114static { TYPE = null; }
115}
116