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