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 package java.lang; 27 28 import android.compat.annotation.UnsupportedAppUsage; 29 import dalvik.annotation.compat.VersionCodes; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public final class Double extends java.lang.Number 33 implements java.lang.Comparable<java.lang.Double> { 34 Double(double value)35 public Double(double value) { 36 throw new RuntimeException("Stub!"); 37 } 38 Double(java.lang.String s)39 public Double(java.lang.String s) throws java.lang.NumberFormatException { 40 throw new RuntimeException("Stub!"); 41 } 42 toString(double d)43 public static java.lang.String toString(double d) { 44 throw new RuntimeException("Stub!"); 45 } 46 toHexString(double d)47 public static java.lang.String toHexString(double d) { 48 throw new RuntimeException("Stub!"); 49 } 50 valueOf(java.lang.String s)51 public static java.lang.Double valueOf(java.lang.String s) 52 throws java.lang.NumberFormatException { 53 throw new RuntimeException("Stub!"); 54 } 55 valueOf(double d)56 public static java.lang.Double valueOf(double d) { 57 throw new RuntimeException("Stub!"); 58 } 59 parseDouble(java.lang.String s)60 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { 61 throw new RuntimeException("Stub!"); 62 } 63 isNaN(double v)64 public static boolean isNaN(double v) { 65 throw new RuntimeException("Stub!"); 66 } 67 isInfinite(double v)68 public static boolean isInfinite(double v) { 69 throw new RuntimeException("Stub!"); 70 } 71 isFinite(double d)72 public static boolean isFinite(double d) { 73 throw new RuntimeException("Stub!"); 74 } 75 isNaN()76 public boolean isNaN() { 77 throw new RuntimeException("Stub!"); 78 } 79 isInfinite()80 public boolean isInfinite() { 81 throw new RuntimeException("Stub!"); 82 } 83 toString()84 public java.lang.String toString() { 85 throw new RuntimeException("Stub!"); 86 } 87 byteValue()88 public byte byteValue() { 89 throw new RuntimeException("Stub!"); 90 } 91 shortValue()92 public short shortValue() { 93 throw new RuntimeException("Stub!"); 94 } 95 intValue()96 public int intValue() { 97 throw new RuntimeException("Stub!"); 98 } 99 longValue()100 public long longValue() { 101 throw new RuntimeException("Stub!"); 102 } 103 floatValue()104 public float floatValue() { 105 throw new RuntimeException("Stub!"); 106 } 107 doubleValue()108 public double doubleValue() { 109 throw new RuntimeException("Stub!"); 110 } 111 hashCode()112 public int hashCode() { 113 throw new RuntimeException("Stub!"); 114 } 115 hashCode(double value)116 public static int hashCode(double value) { 117 throw new RuntimeException("Stub!"); 118 } 119 equals(java.lang.Object obj)120 public boolean equals(java.lang.Object obj) { 121 throw new RuntimeException("Stub!"); 122 } 123 doubleToLongBits(double value)124 public static long doubleToLongBits(double value) { 125 throw new RuntimeException("Stub!"); 126 } 127 doubleToRawLongBits(double value)128 public static native long doubleToRawLongBits(double value); 129 longBitsToDouble(long bits)130 public static native double longBitsToDouble(long bits); 131 compareTo(java.lang.Double anotherDouble)132 public int compareTo(java.lang.Double anotherDouble) { 133 throw new RuntimeException("Stub!"); 134 } 135 compare(double d1, double d2)136 public static int compare(double d1, double d2) { 137 throw new RuntimeException("Stub!"); 138 } 139 sum(double a, double b)140 public static double sum(double a, double b) { 141 throw new RuntimeException("Stub!"); 142 } 143 max(double a, double b)144 public static double max(double a, double b) { 145 throw new RuntimeException("Stub!"); 146 } 147 min(double a, double b)148 public static double min(double a, double b) { 149 throw new RuntimeException("Stub!"); 150 } 151 152 public static final int BYTES = 8; // 0x8 153 154 public static final int MAX_EXPONENT = 1023; // 0x3ff 155 156 public static final double MAX_VALUE = 1.7976931348623157E308; 157 158 public static final int MIN_EXPONENT = -1022; // 0xfffffc02 159 160 public static final double MIN_NORMAL = 2.2250738585072014E-308; 161 162 public static final double MIN_VALUE = 4.9E-324; 163 164 public static final double NEGATIVE_INFINITY = (-1.0 / 0.0); 165 166 public static final double NaN = (0.0 / 0.0); 167 168 public static final double POSITIVE_INFINITY = (1.0 / 0.0); 169 170 public static final int SIZE = 64; // 0x40 171 172 public static final java.lang.Class<java.lang.Double> TYPE; 173 174 static { 175 TYPE = null; 176 } 177 178 private static final long serialVersionUID = -9172774392245257468L; // 0x80b3c24a296bfb04L 179 180 /** 181 * @deprecated Use {@link #doubleValue()}. 182 */ 183 @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P) 184 private final double value; 185 186 { 187 value = 0; 188 } 189 } 190