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