1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 package java.lang;
28 
29 import android.compat.annotation.UnsupportedAppUsage;
30 import dalvik.annotation.compat.VersionCodes;
31 
32 @SuppressWarnings({"unchecked", "deprecation", "all"})
33 public final class Integer extends java.lang.Number
34         implements java.lang.Comparable<java.lang.Integer> {
35 
Integer(int value)36     public Integer(int value) {
37         throw new RuntimeException("Stub!");
38     }
39 
Integer(java.lang.String s)40     public Integer(java.lang.String s) throws java.lang.NumberFormatException {
41         throw new RuntimeException("Stub!");
42     }
43 
toString(int i, int radix)44     public static java.lang.String toString(int i, int radix) {
45         throw new RuntimeException("Stub!");
46     }
47 
toUnsignedString(int i, int radix)48     public static java.lang.String toUnsignedString(int i, int radix) {
49         throw new RuntimeException("Stub!");
50     }
51 
toHexString(int i)52     public static java.lang.String toHexString(int i) {
53         throw new RuntimeException("Stub!");
54     }
55 
toOctalString(int i)56     public static java.lang.String toOctalString(int i) {
57         throw new RuntimeException("Stub!");
58     }
59 
toBinaryString(int i)60     public static java.lang.String toBinaryString(int i) {
61         throw new RuntimeException("Stub!");
62     }
63 
toUnsignedString0(int val, int shift)64     private static java.lang.String toUnsignedString0(int val, int shift) {
65         throw new RuntimeException("Stub!");
66     }
67 
formatUnsignedInt(int val, int shift, char[] buf, int offset, int len)68     static int formatUnsignedInt(int val, int shift, char[] buf, int offset, int len) {
69         throw new RuntimeException("Stub!");
70     }
71 
toString(int i)72     public static java.lang.String toString(int i) {
73         throw new RuntimeException("Stub!");
74     }
75 
toUnsignedString(int i)76     public static java.lang.String toUnsignedString(int i) {
77         throw new RuntimeException("Stub!");
78     }
79 
getChars(int i, int index, char[] buf)80     static void getChars(int i, int index, char[] buf) {
81         throw new RuntimeException("Stub!");
82     }
83 
stringSize(int x)84     static int stringSize(int x) {
85         throw new RuntimeException("Stub!");
86     }
87 
parseInt(java.lang.String s, int radix)88     public static int parseInt(java.lang.String s, int radix)
89             throws java.lang.NumberFormatException {
90         throw new RuntimeException("Stub!");
91     }
92 
parseInt(java.lang.String s)93     public static int parseInt(java.lang.String s) throws java.lang.NumberFormatException {
94         throw new RuntimeException("Stub!");
95     }
96 
parseUnsignedInt(java.lang.String s, int radix)97     public static int parseUnsignedInt(java.lang.String s, int radix)
98             throws java.lang.NumberFormatException {
99         throw new RuntimeException("Stub!");
100     }
101 
parseUnsignedInt(java.lang.String s)102     public static int parseUnsignedInt(java.lang.String s) throws java.lang.NumberFormatException {
103         throw new RuntimeException("Stub!");
104     }
105 
valueOf(java.lang.String s, int radix)106     public static java.lang.Integer valueOf(java.lang.String s, int radix)
107             throws java.lang.NumberFormatException {
108         throw new RuntimeException("Stub!");
109     }
110 
valueOf(java.lang.String s)111     public static java.lang.Integer valueOf(java.lang.String s)
112             throws java.lang.NumberFormatException {
113         throw new RuntimeException("Stub!");
114     }
115 
valueOf(int i)116     public static java.lang.Integer valueOf(int i) {
117         throw new RuntimeException("Stub!");
118     }
119 
byteValue()120     public byte byteValue() {
121         throw new RuntimeException("Stub!");
122     }
123 
shortValue()124     public short shortValue() {
125         throw new RuntimeException("Stub!");
126     }
127 
intValue()128     public int intValue() {
129         throw new RuntimeException("Stub!");
130     }
131 
longValue()132     public long longValue() {
133         throw new RuntimeException("Stub!");
134     }
135 
floatValue()136     public float floatValue() {
137         throw new RuntimeException("Stub!");
138     }
139 
doubleValue()140     public double doubleValue() {
141         throw new RuntimeException("Stub!");
142     }
143 
toString()144     public java.lang.String toString() {
145         throw new RuntimeException("Stub!");
146     }
147 
hashCode()148     public int hashCode() {
149         throw new RuntimeException("Stub!");
150     }
151 
hashCode(int value)152     public static int hashCode(int value) {
153         throw new RuntimeException("Stub!");
154     }
155 
equals(java.lang.Object obj)156     public boolean equals(java.lang.Object obj) {
157         throw new RuntimeException("Stub!");
158     }
159 
getInteger(java.lang.String nm)160     public static java.lang.Integer getInteger(java.lang.String nm) {
161         throw new RuntimeException("Stub!");
162     }
163 
getInteger(java.lang.String nm, int val)164     public static java.lang.Integer getInteger(java.lang.String nm, int val) {
165         throw new RuntimeException("Stub!");
166     }
167 
getInteger(java.lang.String nm, java.lang.Integer val)168     public static java.lang.Integer getInteger(java.lang.String nm, java.lang.Integer val) {
169         throw new RuntimeException("Stub!");
170     }
171 
decode(java.lang.String nm)172     public static java.lang.Integer decode(java.lang.String nm)
173             throws java.lang.NumberFormatException {
174         throw new RuntimeException("Stub!");
175     }
176 
compareTo(java.lang.Integer anotherInteger)177     public int compareTo(java.lang.Integer anotherInteger) {
178         throw new RuntimeException("Stub!");
179     }
180 
compare(int x, int y)181     public static int compare(int x, int y) {
182         throw new RuntimeException("Stub!");
183     }
184 
compareUnsigned(int x, int y)185     public static int compareUnsigned(int x, int y) {
186         throw new RuntimeException("Stub!");
187     }
188 
toUnsignedLong(int x)189     public static long toUnsignedLong(int x) {
190         throw new RuntimeException("Stub!");
191     }
192 
divideUnsigned(int dividend, int divisor)193     public static int divideUnsigned(int dividend, int divisor) {
194         throw new RuntimeException("Stub!");
195     }
196 
remainderUnsigned(int dividend, int divisor)197     public static int remainderUnsigned(int dividend, int divisor) {
198         throw new RuntimeException("Stub!");
199     }
200 
highestOneBit(int i)201     public static int highestOneBit(int i) {
202         throw new RuntimeException("Stub!");
203     }
204 
lowestOneBit(int i)205     public static int lowestOneBit(int i) {
206         throw new RuntimeException("Stub!");
207     }
208 
numberOfLeadingZeros(int i)209     public static int numberOfLeadingZeros(int i) {
210         throw new RuntimeException("Stub!");
211     }
212 
numberOfTrailingZeros(int i)213     public static int numberOfTrailingZeros(int i) {
214         throw new RuntimeException("Stub!");
215     }
216 
bitCount(int i)217     public static int bitCount(int i) {
218         throw new RuntimeException("Stub!");
219     }
220 
rotateLeft(int i, int distance)221     public static int rotateLeft(int i, int distance) {
222         throw new RuntimeException("Stub!");
223     }
224 
rotateRight(int i, int distance)225     public static int rotateRight(int i, int distance) {
226         throw new RuntimeException("Stub!");
227     }
228 
reverse(int i)229     public static int reverse(int i) {
230         throw new RuntimeException("Stub!");
231     }
232 
signum(int i)233     public static int signum(int i) {
234         throw new RuntimeException("Stub!");
235     }
236 
reverseBytes(int i)237     public static int reverseBytes(int i) {
238         throw new RuntimeException("Stub!");
239     }
240 
sum(int a, int b)241     public static int sum(int a, int b) {
242         throw new RuntimeException("Stub!");
243     }
244 
max(int a, int b)245     public static int max(int a, int b) {
246         throw new RuntimeException("Stub!");
247     }
248 
min(int a, int b)249     public static int min(int a, int b) {
250         throw new RuntimeException("Stub!");
251     }
252 
253     public static final int BYTES = 4; // 0x4
254 
255     static final char[] DigitOnes;
256 
257     static {
258         DigitOnes = new char[0];
259     }
260 
261     static final char[] DigitTens;
262 
263     static {
264         DigitTens = new char[0];
265     }
266 
267     public static final int MAX_VALUE = 2147483647; // 0x7fffffff
268 
269     public static final int MIN_VALUE = -2147483648; // 0x80000000
270 
271     public static final int SIZE = 32; // 0x20
272 
273     private static final java.lang.String[] SMALL_NEG_VALUES;
274 
275     static {
276         SMALL_NEG_VALUES = new java.lang.String[0];
277     }
278 
279     private static final java.lang.String[] SMALL_NONNEG_VALUES;
280 
281     static {
282         SMALL_NONNEG_VALUES = new java.lang.String[0];
283     }
284 
285     public static final java.lang.Class<java.lang.Integer> TYPE;
286 
287     static {
288         TYPE = null;
289     }
290 
291     static final char[] digits;
292 
293     static {
294         digits = new char[0];
295     }
296 
297     private static final long serialVersionUID = 1360826667806852920L; // 0x12e2a0a4f7818738L
298 
299     static final int[] sizeTable;
300 
301     static {
302         sizeTable = new int[0];
303     }
304 
305     /**
306      * @deprecated Use {@link #intValue()}.
307      */
308     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P)
309     private final int value;
310 
311     {
312         value = 0;
313     }
314 
315     @SuppressWarnings({"unchecked", "deprecation", "all"})
316     private static class IntegerCache {
317 
IntegerCache()318         private IntegerCache() {
319             throw new RuntimeException("Stub!");
320         }
321 
322         static final java.lang.Integer[] cache;
323 
324         static {
325             cache = new java.lang.Integer[0];
326         }
327 
328         static final int high;
329 
330         static {
331             high = 0;
332         }
333 
334         static final int low = -128; // 0xffffff80
335     }
336 }
337