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