• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1996, 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 package java.lang;
27 
28 import android.compat.annotation.UnsupportedAppUsage;
29 import dalvik.annotation.compat.VersionCodes;
30 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public final class Byte extends java.lang.Number implements java.lang.Comparable<java.lang.Byte> {
33 
Byte(byte value)34     public Byte(byte value) {
35         throw new RuntimeException("Stub!");
36     }
37 
Byte(java.lang.String s)38     public Byte(java.lang.String s) throws java.lang.NumberFormatException {
39         throw new RuntimeException("Stub!");
40     }
41 
toString(byte b)42     public static java.lang.String toString(byte b) {
43         throw new RuntimeException("Stub!");
44     }
45 
valueOf(byte b)46     public static java.lang.Byte valueOf(byte b) {
47         throw new RuntimeException("Stub!");
48     }
49 
parseByte(java.lang.String s, int radix)50     public static byte parseByte(java.lang.String s, int radix)
51             throws java.lang.NumberFormatException {
52         throw new RuntimeException("Stub!");
53     }
54 
parseByte(java.lang.String s)55     public static byte parseByte(java.lang.String s) throws java.lang.NumberFormatException {
56         throw new RuntimeException("Stub!");
57     }
58 
valueOf(java.lang.String s, int radix)59     public static java.lang.Byte valueOf(java.lang.String s, int radix)
60             throws java.lang.NumberFormatException {
61         throw new RuntimeException("Stub!");
62     }
63 
valueOf(java.lang.String s)64     public static java.lang.Byte valueOf(java.lang.String s)
65             throws java.lang.NumberFormatException {
66         throw new RuntimeException("Stub!");
67     }
68 
decode(java.lang.String nm)69     public static java.lang.Byte decode(java.lang.String nm)
70             throws java.lang.NumberFormatException {
71         throw new RuntimeException("Stub!");
72     }
73 
byteValue()74     public byte byteValue() {
75         throw new RuntimeException("Stub!");
76     }
77 
shortValue()78     public short shortValue() {
79         throw new RuntimeException("Stub!");
80     }
81 
intValue()82     public int intValue() {
83         throw new RuntimeException("Stub!");
84     }
85 
longValue()86     public long longValue() {
87         throw new RuntimeException("Stub!");
88     }
89 
floatValue()90     public float floatValue() {
91         throw new RuntimeException("Stub!");
92     }
93 
doubleValue()94     public double doubleValue() {
95         throw new RuntimeException("Stub!");
96     }
97 
toString()98     public java.lang.String toString() {
99         throw new RuntimeException("Stub!");
100     }
101 
hashCode()102     public int hashCode() {
103         throw new RuntimeException("Stub!");
104     }
105 
hashCode(byte value)106     public static int hashCode(byte value) {
107         throw new RuntimeException("Stub!");
108     }
109 
equals(java.lang.Object obj)110     public boolean equals(java.lang.Object obj) {
111         throw new RuntimeException("Stub!");
112     }
113 
compareTo(java.lang.Byte anotherByte)114     public int compareTo(java.lang.Byte anotherByte) {
115         throw new RuntimeException("Stub!");
116     }
117 
compare(byte x, byte y)118     public static int compare(byte x, byte y) {
119         throw new RuntimeException("Stub!");
120     }
121 
toUnsignedInt(byte x)122     public static int toUnsignedInt(byte x) {
123         throw new RuntimeException("Stub!");
124     }
125 
toUnsignedLong(byte x)126     public static long toUnsignedLong(byte x) {
127         throw new RuntimeException("Stub!");
128     }
129 
130     @UnsupportedAppUsage
toHexString(byte b, boolean upperCase)131     public static java.lang.String toHexString(byte b, boolean upperCase) {
132         throw new RuntimeException("Stub!");
133     }
134 
135     public static final int BYTES = 1; // 0x1
136 
137     private static final char[] DIGITS;
138 
139     static {
140         DIGITS = new char[0];
141     }
142 
143     public static final byte MAX_VALUE = 127; // 0x7f
144 
145     public static final byte MIN_VALUE = -128; // 0xffffff80
146 
147     public static final int SIZE = 8; // 0x8
148 
149     public static final java.lang.Class<java.lang.Byte> TYPE;
150 
151     static {
152         TYPE = null;
153     }
154 
155     private static final char[] UPPER_CASE_DIGITS;
156 
157     static {
158         UPPER_CASE_DIGITS = new char[0];
159     }
160 
161     private static final long serialVersionUID = -7183698231559129828L; // 0x9c4e6084ee50f51cL
162 
163     /**
164      * @deprecated Use {@link #byteValue()}.
165      */
166     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P)
167     private final byte value;
168 
169     {
170         value = 0;
171     }
172 
173     @SuppressWarnings({"unchecked", "deprecation", "all"})
174     private static class ByteCache {
175 
ByteCache()176         private ByteCache() {
177             throw new RuntimeException("Stub!");
178         }
179 
180         static final java.lang.Byte[] cache;
181 
182         static {
183             cache = new java.lang.Byte[0];
184         }
185     }
186 }
187