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 Float extends java.lang.Number implements java.lang.Comparable<java.lang.Float> {
32 
Float(float value)33 public Float(float value) { throw new RuntimeException("Stub!"); }
34 
Float(double value)35 public Float(double value) { throw new RuntimeException("Stub!"); }
36 
Float(@ibcore.util.NonNull java.lang.String s)37 public Float(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
38 
toString(float f)39 @libcore.util.NonNull public static java.lang.String toString(float f) { throw new RuntimeException("Stub!"); }
40 
toHexString(float f)41 @libcore.util.NonNull public static java.lang.String toHexString(float f) { throw new RuntimeException("Stub!"); }
42 
valueOf(@ibcore.util.NonNull java.lang.String s)43 @libcore.util.NonNull public static java.lang.Float valueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
44 
valueOf(float f)45 @libcore.util.NonNull public static java.lang.Float valueOf(float f) { throw new RuntimeException("Stub!"); }
46 
parseFloat(@ibcore.util.NonNull java.lang.String s)47 public static float parseFloat(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
48 
isNaN(float v)49 public static boolean isNaN(float v) { throw new RuntimeException("Stub!"); }
50 
isInfinite(float v)51 public static boolean isInfinite(float v) { throw new RuntimeException("Stub!"); }
52 
isFinite(float f)53 public static boolean isFinite(float f) { throw new RuntimeException("Stub!"); }
54 
isNaN()55 public boolean isNaN() { throw new RuntimeException("Stub!"); }
56 
isInfinite()57 public boolean isInfinite() { throw new RuntimeException("Stub!"); }
58 
toString()59 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
60 
byteValue()61 public byte byteValue() { throw new RuntimeException("Stub!"); }
62 
shortValue()63 public short shortValue() { throw new RuntimeException("Stub!"); }
64 
intValue()65 public int intValue() { throw new RuntimeException("Stub!"); }
66 
longValue()67 public long longValue() { throw new RuntimeException("Stub!"); }
68 
floatValue()69 public float floatValue() { throw new RuntimeException("Stub!"); }
70 
doubleValue()71 public double doubleValue() { throw new RuntimeException("Stub!"); }
72 
hashCode()73 public int hashCode() { throw new RuntimeException("Stub!"); }
74 
hashCode(float value)75 public static int hashCode(float value) { throw new RuntimeException("Stub!"); }
76 
equals(@ibcore.util.Nullable java.lang.Object obj)77 public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
78 
floatToIntBits(float value)79 public static int floatToIntBits(float value) { throw new RuntimeException("Stub!"); }
80 
floatToRawIntBits(float value)81 public static native int floatToRawIntBits(float value);
82 
intBitsToFloat(int bits)83 public static native float intBitsToFloat(int bits);
84 
compareTo(@ibcore.util.NonNull java.lang.Float anotherFloat)85 public int compareTo(@libcore.util.NonNull java.lang.Float anotherFloat) { throw new RuntimeException("Stub!"); }
86 
compare(float f1, float f2)87 public static int compare(float f1, float f2) { throw new RuntimeException("Stub!"); }
88 
sum(float a, float b)89 public static float sum(float a, float b) { throw new RuntimeException("Stub!"); }
90 
max(float a, float b)91 public static float max(float a, float b) { throw new RuntimeException("Stub!"); }
92 
min(float a, float b)93 public static float min(float a, float b) { throw new RuntimeException("Stub!"); }
94 
95 public static final int BYTES = 4; // 0x4
96 
97 public static final int MAX_EXPONENT = 127; // 0x7f
98 
99 public static final float MAX_VALUE = 3.4028235E38f;
100 
101 public static final int MIN_EXPONENT = -126; // 0xffffff82
102 
103 public static final float MIN_NORMAL = 1.17549435E-38f;
104 
105 public static final float MIN_VALUE = 1.4E-45f;
106 
107 public static final float NEGATIVE_INFINITY = (-1.0f/0.0f);
108 
109 public static final float NaN = (0.0f/0.0f);
110 
111 public static final float POSITIVE_INFINITY = (1.0f/0.0f);
112 
113 public static final int SIZE = 32; // 0x20
114 
115 public static final java.lang.Class<java.lang.Float> TYPE;
116 static { TYPE = null; }
117 }
118 
119