1 /*
2  * Copyright (c) 1994, 2021, 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 
27 package java.lang;
28 
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public final class Double extends java.lang.Number implements java.lang.Comparable<java.lang.Double> {
31 
32 @Deprecated
Double(double value)33 public Double(double value) { throw new RuntimeException("Stub!"); }
34 
35 @Deprecated
Double(java.lang.String s)36 public Double(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
37 
toString(double d)38 public static java.lang.String toString(double d) { throw new RuntimeException("Stub!"); }
39 
toHexString(double d)40 public static java.lang.String toHexString(double d) { throw new RuntimeException("Stub!"); }
41 
valueOf(java.lang.String s)42 public static java.lang.Double valueOf(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
43 
valueOf(double d)44 public static java.lang.Double valueOf(double d) { throw new RuntimeException("Stub!"); }
45 
parseDouble(java.lang.String s)46 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
47 
isNaN(double v)48 public static boolean isNaN(double v) { throw new RuntimeException("Stub!"); }
49 
isInfinite(double v)50 public static boolean isInfinite(double v) { throw new RuntimeException("Stub!"); }
51 
isFinite(double d)52 public static boolean isFinite(double d) { throw new RuntimeException("Stub!"); }
53 
isNaN()54 public boolean isNaN() { throw new RuntimeException("Stub!"); }
55 
isInfinite()56 public boolean isInfinite() { throw new RuntimeException("Stub!"); }
57 
toString()58 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
59 
byteValue()60 public byte byteValue() { throw new RuntimeException("Stub!"); }
61 
shortValue()62 public short shortValue() { throw new RuntimeException("Stub!"); }
63 
intValue()64 public int intValue() { throw new RuntimeException("Stub!"); }
65 
longValue()66 public long longValue() { throw new RuntimeException("Stub!"); }
67 
floatValue()68 public float floatValue() { throw new RuntimeException("Stub!"); }
69 
doubleValue()70 public double doubleValue() { throw new RuntimeException("Stub!"); }
71 
hashCode()72 public int hashCode() { throw new RuntimeException("Stub!"); }
73 
hashCode(double value)74 public static int hashCode(double value) { throw new RuntimeException("Stub!"); }
75 
equals(java.lang.Object obj)76 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
77 
doubleToLongBits(double value)78 public static long doubleToLongBits(double value) { throw new RuntimeException("Stub!"); }
79 
doubleToRawLongBits(double value)80 public static native long doubleToRawLongBits(double value);
81 
longBitsToDouble(long bits)82 public static native double longBitsToDouble(long bits);
83 
compareTo(java.lang.Double anotherDouble)84 public int compareTo(java.lang.Double anotherDouble) { throw new RuntimeException("Stub!"); }
85 
compare(double d1, double d2)86 public static int compare(double d1, double d2) { throw new RuntimeException("Stub!"); }
87 
sum(double a, double b)88 public static double sum(double a, double b) { throw new RuntimeException("Stub!"); }
89 
max(double a, double b)90 public static double max(double a, double b) { throw new RuntimeException("Stub!"); }
91 
min(double a, double b)92 public static double min(double a, double b) { throw new RuntimeException("Stub!"); }
93 
94 public static final int BYTES = 8; // 0x8
95 
96 public static final int MAX_EXPONENT = 1023; // 0x3ff
97 
98 public static final double MAX_VALUE = 1.7976931348623157E308;
99 
100 public static final int MIN_EXPONENT = -1022; // 0xfffffc02
101 
102 public static final double MIN_NORMAL = 2.2250738585072014E-308;
103 
104 public static final double MIN_VALUE = 4.9E-324;
105 
106 public static final double NEGATIVE_INFINITY = (-1.0/0.0);
107 
108 public static final double NaN = (0.0/0.0);
109 
110 public static final double POSITIVE_INFINITY = (1.0/0.0);
111 
112 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
113 public static final int PRECISION = 53; // 0x35
114 
115 public static final int SIZE = 64; // 0x40
116 
117 public static final java.lang.Class<java.lang.Double> TYPE;
118 static { TYPE = null; }
119 }
120 
121