1 /*
2 * Copyright (c) 1994, 2023, 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 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public final class Long extends java.lang.Number implements java.lang.Comparable<java.lang.Long> {
31
32 @Deprecated
Long(java.lang.String s)33 public Long(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
34
35 @Deprecated
Long(long value)36 public Long(long value) { throw new RuntimeException("Stub!"); }
37
bitCount(long i)38 public static int bitCount(long i) { throw new RuntimeException("Stub!"); }
39
byteValue()40 public byte byteValue() { throw new RuntimeException("Stub!"); }
41
compare(long x, long y)42 public static int compare(long x, long y) { throw new RuntimeException("Stub!"); }
43
compareTo(java.lang.Long anotherLong)44 public int compareTo(java.lang.Long anotherLong) { throw new RuntimeException("Stub!"); }
45
compareUnsigned(long x, long y)46 public static int compareUnsigned(long x, long y) { throw new RuntimeException("Stub!"); }
47
48 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
compress(long i, long mask)49 public static long compress(long i, long mask) { throw new RuntimeException("Stub!"); }
50
decode(java.lang.String nm)51 public static java.lang.Long decode(java.lang.String nm) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
52
divideUnsigned(long dividend, long divisor)53 public static long divideUnsigned(long dividend, long divisor) { throw new RuntimeException("Stub!"); }
54
doubleValue()55 public double doubleValue() { throw new RuntimeException("Stub!"); }
56
equals(java.lang.Object obj)57 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
58
59 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
expand(long i, long mask)60 public static long expand(long i, long mask) { throw new RuntimeException("Stub!"); }
61
floatValue()62 public float floatValue() { throw new RuntimeException("Stub!"); }
63
getLong(java.lang.String nm)64 public static java.lang.Long getLong(java.lang.String nm) { throw new RuntimeException("Stub!"); }
65
getLong(java.lang.String nm, java.lang.Long val)66 public static java.lang.Long getLong(java.lang.String nm, java.lang.Long val) { throw new RuntimeException("Stub!"); }
67
getLong(java.lang.String nm, long val)68 public static java.lang.Long getLong(java.lang.String nm, long val) { throw new RuntimeException("Stub!"); }
69
hashCode()70 public int hashCode() { throw new RuntimeException("Stub!"); }
71
hashCode(long value)72 public static int hashCode(long value) { throw new RuntimeException("Stub!"); }
73
highestOneBit(long i)74 public static long highestOneBit(long i) { throw new RuntimeException("Stub!"); }
75
intValue()76 public int intValue() { throw new RuntimeException("Stub!"); }
77
longValue()78 public long longValue() { throw new RuntimeException("Stub!"); }
79
lowestOneBit(long i)80 public static long lowestOneBit(long i) { throw new RuntimeException("Stub!"); }
81
max(long a, long b)82 public static long max(long a, long b) { throw new RuntimeException("Stub!"); }
83
min(long a, long b)84 public static long min(long a, long b) { throw new RuntimeException("Stub!"); }
85
numberOfLeadingZeros(long i)86 public static int numberOfLeadingZeros(long i) { throw new RuntimeException("Stub!"); }
87
numberOfTrailingZeros(long i)88 public static int numberOfTrailingZeros(long i) { throw new RuntimeException("Stub!"); }
89
parseLong(java.lang.CharSequence s, int beginIndex, int endIndex, int radix)90 public static long parseLong(java.lang.CharSequence s, int beginIndex, int endIndex, int radix) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
91
parseLong(java.lang.String s)92 public static long parseLong(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
93
parseLong(java.lang.String s, int radix)94 public static long parseLong(java.lang.String s, int radix) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
95
parseUnsignedLong(java.lang.CharSequence s, int beginIndex, int endIndex, int radix)96 public static long parseUnsignedLong(java.lang.CharSequence s, int beginIndex, int endIndex, int radix) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
97
parseUnsignedLong(java.lang.String s)98 public static long parseUnsignedLong(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
99
parseUnsignedLong(java.lang.String s, int radix)100 public static long parseUnsignedLong(java.lang.String s, int radix) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
101
remainderUnsigned(long dividend, long divisor)102 public static long remainderUnsigned(long dividend, long divisor) { throw new RuntimeException("Stub!"); }
103
reverse(long i)104 public static long reverse(long i) { throw new RuntimeException("Stub!"); }
105
reverseBytes(long i)106 public static long reverseBytes(long i) { throw new RuntimeException("Stub!"); }
107
rotateLeft(long i, int distance)108 public static long rotateLeft(long i, int distance) { throw new RuntimeException("Stub!"); }
109
rotateRight(long i, int distance)110 public static long rotateRight(long i, int distance) { throw new RuntimeException("Stub!"); }
111
shortValue()112 public short shortValue() { throw new RuntimeException("Stub!"); }
113
signum(long i)114 public static int signum(long i) { throw new RuntimeException("Stub!"); }
115
sum(long a, long b)116 public static long sum(long a, long b) { throw new RuntimeException("Stub!"); }
117
toBinaryString(long i)118 public static java.lang.String toBinaryString(long i) { throw new RuntimeException("Stub!"); }
119
toHexString(long i)120 public static java.lang.String toHexString(long i) { throw new RuntimeException("Stub!"); }
121
toOctalString(long i)122 public static java.lang.String toOctalString(long i) { throw new RuntimeException("Stub!"); }
123
toString()124 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
125
toString(long i)126 public static java.lang.String toString(long i) { throw new RuntimeException("Stub!"); }
127
toString(long i, int radix)128 public static java.lang.String toString(long i, int radix) { throw new RuntimeException("Stub!"); }
129
toUnsignedString(long i)130 public static java.lang.String toUnsignedString(long i) { throw new RuntimeException("Stub!"); }
131
toUnsignedString(long i, int radix)132 public static java.lang.String toUnsignedString(long i, int radix) { throw new RuntimeException("Stub!"); }
133
valueOf(java.lang.String s)134 public static java.lang.Long valueOf(java.lang.String s) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
135
valueOf(java.lang.String s, int radix)136 public static java.lang.Long valueOf(java.lang.String s, int radix) throws java.lang.NumberFormatException { throw new RuntimeException("Stub!"); }
137
valueOf(long l)138 public static java.lang.Long valueOf(long l) { throw new RuntimeException("Stub!"); }
139
140 public static final int BYTES = 8; // 0x8
141
142 public static final long MAX_VALUE = 9223372036854775807L; // 0x7fffffffffffffffL
143
144 public static final long MIN_VALUE = -9223372036854775808L; // 0x8000000000000000L
145
146 public static final int SIZE = 64; // 0x40
147
148 public static final java.lang.Class<java.lang.Long> TYPE;
149 static { TYPE = null; }
150 }
151
152