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 Long extends java.lang.Number implements java.lang.Comparable<java.lang.Long> {
34 
Long(long value)35     public Long(long value) {
36         throw new RuntimeException("Stub!");
37     }
38 
Long(java.lang.String s)39     public Long(java.lang.String s) throws java.lang.NumberFormatException {
40         throw new RuntimeException("Stub!");
41     }
42 
toString(long i, int radix)43     public static java.lang.String toString(long i, int radix) {
44         throw new RuntimeException("Stub!");
45     }
46 
toUnsignedString(long i, int radix)47     public static java.lang.String toUnsignedString(long i, int radix) {
48         throw new RuntimeException("Stub!");
49     }
50 
toUnsignedBigInteger(long i)51     private static java.math.BigInteger toUnsignedBigInteger(long i) {
52         throw new RuntimeException("Stub!");
53     }
54 
toHexString(long i)55     public static java.lang.String toHexString(long i) {
56         throw new RuntimeException("Stub!");
57     }
58 
toOctalString(long i)59     public static java.lang.String toOctalString(long i) {
60         throw new RuntimeException("Stub!");
61     }
62 
toBinaryString(long i)63     public static java.lang.String toBinaryString(long i) {
64         throw new RuntimeException("Stub!");
65     }
66 
toUnsignedString0(long val, int shift)67     static java.lang.String toUnsignedString0(long val, int shift) {
68         throw new RuntimeException("Stub!");
69     }
70 
formatUnsignedLong(long val, int shift, char[] buf, int offset, int len)71     static int formatUnsignedLong(long val, int shift, char[] buf, int offset, int len) {
72         throw new RuntimeException("Stub!");
73     }
74 
toString(long i)75     public static java.lang.String toString(long i) {
76         throw new RuntimeException("Stub!");
77     }
78 
toUnsignedString(long i)79     public static java.lang.String toUnsignedString(long i) {
80         throw new RuntimeException("Stub!");
81     }
82 
getChars(long i, int index, char[] buf)83     static void getChars(long i, int index, char[] buf) {
84         throw new RuntimeException("Stub!");
85     }
86 
stringSize(long x)87     static int stringSize(long x) {
88         throw new RuntimeException("Stub!");
89     }
90 
parseLong(java.lang.String s, int radix)91     public static long parseLong(java.lang.String s, int radix)
92             throws java.lang.NumberFormatException {
93         throw new RuntimeException("Stub!");
94     }
95 
parseLong(java.lang.String s)96     public static long parseLong(java.lang.String s) throws java.lang.NumberFormatException {
97         throw new RuntimeException("Stub!");
98     }
99 
parseUnsignedLong(java.lang.String s, int radix)100     public static long parseUnsignedLong(java.lang.String s, int radix)
101             throws java.lang.NumberFormatException {
102         throw new RuntimeException("Stub!");
103     }
104 
parseUnsignedLong(java.lang.String s)105     public static long parseUnsignedLong(java.lang.String s)
106             throws java.lang.NumberFormatException {
107         throw new RuntimeException("Stub!");
108     }
109 
valueOf(java.lang.String s, int radix)110     public static java.lang.Long valueOf(java.lang.String s, int radix)
111             throws java.lang.NumberFormatException {
112         throw new RuntimeException("Stub!");
113     }
114 
valueOf(java.lang.String s)115     public static java.lang.Long valueOf(java.lang.String s)
116             throws java.lang.NumberFormatException {
117         throw new RuntimeException("Stub!");
118     }
119 
valueOf(long l)120     public static java.lang.Long valueOf(long l) {
121         throw new RuntimeException("Stub!");
122     }
123 
decode(java.lang.String nm)124     public static java.lang.Long decode(java.lang.String nm)
125             throws java.lang.NumberFormatException {
126         throw new RuntimeException("Stub!");
127     }
128 
byteValue()129     public byte byteValue() {
130         throw new RuntimeException("Stub!");
131     }
132 
shortValue()133     public short shortValue() {
134         throw new RuntimeException("Stub!");
135     }
136 
intValue()137     public int intValue() {
138         throw new RuntimeException("Stub!");
139     }
140 
longValue()141     public long longValue() {
142         throw new RuntimeException("Stub!");
143     }
144 
floatValue()145     public float floatValue() {
146         throw new RuntimeException("Stub!");
147     }
148 
doubleValue()149     public double doubleValue() {
150         throw new RuntimeException("Stub!");
151     }
152 
toString()153     public java.lang.String toString() {
154         throw new RuntimeException("Stub!");
155     }
156 
hashCode()157     public int hashCode() {
158         throw new RuntimeException("Stub!");
159     }
160 
hashCode(long value)161     public static int hashCode(long value) {
162         throw new RuntimeException("Stub!");
163     }
164 
equals(java.lang.Object obj)165     public boolean equals(java.lang.Object obj) {
166         throw new RuntimeException("Stub!");
167     }
168 
getLong(java.lang.String nm)169     public static java.lang.Long getLong(java.lang.String nm) {
170         throw new RuntimeException("Stub!");
171     }
172 
getLong(java.lang.String nm, long val)173     public static java.lang.Long getLong(java.lang.String nm, long val) {
174         throw new RuntimeException("Stub!");
175     }
176 
getLong(java.lang.String nm, java.lang.Long val)177     public static java.lang.Long getLong(java.lang.String nm, java.lang.Long val) {
178         throw new RuntimeException("Stub!");
179     }
180 
compareTo(java.lang.Long anotherLong)181     public int compareTo(java.lang.Long anotherLong) {
182         throw new RuntimeException("Stub!");
183     }
184 
compare(long x, long y)185     public static int compare(long x, long y) {
186         throw new RuntimeException("Stub!");
187     }
188 
compareUnsigned(long x, long y)189     public static int compareUnsigned(long x, long y) {
190         throw new RuntimeException("Stub!");
191     }
192 
divideUnsigned(long dividend, long divisor)193     public static long divideUnsigned(long dividend, long divisor) {
194         throw new RuntimeException("Stub!");
195     }
196 
remainderUnsigned(long dividend, long divisor)197     public static long remainderUnsigned(long dividend, long divisor) {
198         throw new RuntimeException("Stub!");
199     }
200 
highestOneBit(long i)201     public static long highestOneBit(long i) {
202         throw new RuntimeException("Stub!");
203     }
204 
lowestOneBit(long i)205     public static long lowestOneBit(long i) {
206         throw new RuntimeException("Stub!");
207     }
208 
numberOfLeadingZeros(long i)209     public static int numberOfLeadingZeros(long i) {
210         throw new RuntimeException("Stub!");
211     }
212 
numberOfTrailingZeros(long i)213     public static int numberOfTrailingZeros(long i) {
214         throw new RuntimeException("Stub!");
215     }
216 
bitCount(long i)217     public static int bitCount(long i) {
218         throw new RuntimeException("Stub!");
219     }
220 
rotateLeft(long i, int distance)221     public static long rotateLeft(long i, int distance) {
222         throw new RuntimeException("Stub!");
223     }
224 
rotateRight(long i, int distance)225     public static long rotateRight(long i, int distance) {
226         throw new RuntimeException("Stub!");
227     }
228 
reverse(long i)229     public static long reverse(long i) {
230         throw new RuntimeException("Stub!");
231     }
232 
signum(long i)233     public static int signum(long i) {
234         throw new RuntimeException("Stub!");
235     }
236 
reverseBytes(long i)237     public static long reverseBytes(long i) {
238         throw new RuntimeException("Stub!");
239     }
240 
sum(long a, long b)241     public static long sum(long a, long b) {
242         throw new RuntimeException("Stub!");
243     }
244 
max(long a, long b)245     public static long max(long a, long b) {
246         throw new RuntimeException("Stub!");
247     }
248 
min(long a, long b)249     public static long min(long a, long b) {
250         throw new RuntimeException("Stub!");
251     }
252 
253     public static final int BYTES = 8; // 0x8
254 
255     public static final long MAX_VALUE = 9223372036854775807L; // 0x7fffffffffffffffL
256 
257     public static final long MIN_VALUE = -9223372036854775808L; // 0x8000000000000000L
258 
259     public static final int SIZE = 64; // 0x40
260 
261     public static final java.lang.Class<java.lang.Long> TYPE;
262 
263     static {
264         TYPE = null;
265     }
266 
267     private static final long serialVersionUID = 4290774380558885855L; // 0x3b8be490cc8f23dfL
268 
269     /**
270      * @deprecated Use {@link #longValue()}.
271      */
272     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P)
273     private final long value;
274 
275     {
276         value = 0;
277     }
278 
279     @SuppressWarnings({"unchecked", "deprecation", "all"})
280     private static class LongCache {
281 
LongCache()282         private LongCache() {
283             throw new RuntimeException("Stub!");
284         }
285 
286         static final java.lang.Long[] cache;
287 
288         static {
289             cache = new java.lang.Long[0];
290         }
291     }
292 }
293