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 Short extends java.lang.Number implements java.lang.Comparable<java.lang.Short> {
33 
Short(short value)34     public Short(short value) {
35         throw new RuntimeException("Stub!");
36     }
37 
Short(java.lang.String s)38     public Short(java.lang.String s) throws java.lang.NumberFormatException {
39         throw new RuntimeException("Stub!");
40     }
41 
toString(short s)42     public static java.lang.String toString(short s) {
43         throw new RuntimeException("Stub!");
44     }
45 
parseShort(java.lang.String s, int radix)46     public static short parseShort(java.lang.String s, int radix)
47             throws java.lang.NumberFormatException {
48         throw new RuntimeException("Stub!");
49     }
50 
parseShort(java.lang.String s)51     public static short parseShort(java.lang.String s) throws java.lang.NumberFormatException {
52         throw new RuntimeException("Stub!");
53     }
54 
valueOf(java.lang.String s, int radix)55     public static java.lang.Short valueOf(java.lang.String s, int radix)
56             throws java.lang.NumberFormatException {
57         throw new RuntimeException("Stub!");
58     }
59 
valueOf(java.lang.String s)60     public static java.lang.Short valueOf(java.lang.String s)
61             throws java.lang.NumberFormatException {
62         throw new RuntimeException("Stub!");
63     }
64 
valueOf(short s)65     public static java.lang.Short valueOf(short s) {
66         throw new RuntimeException("Stub!");
67     }
68 
decode(java.lang.String nm)69     public static java.lang.Short 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(short value)106     public static int hashCode(short 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.Short anotherShort)114     public int compareTo(java.lang.Short anotherShort) {
115         throw new RuntimeException("Stub!");
116     }
117 
compare(short x, short y)118     public static int compare(short x, short y) {
119         throw new RuntimeException("Stub!");
120     }
121 
reverseBytes(short i)122     public static short reverseBytes(short i) {
123         throw new RuntimeException("Stub!");
124     }
125 
toUnsignedInt(short x)126     public static int toUnsignedInt(short x) {
127         throw new RuntimeException("Stub!");
128     }
129 
toUnsignedLong(short x)130     public static long toUnsignedLong(short x) {
131         throw new RuntimeException("Stub!");
132     }
133 
134     public static final int BYTES = 2; // 0x2
135 
136     public static final short MAX_VALUE = 32767; // 0x7fff
137 
138     public static final short MIN_VALUE = -32768; // 0xffff8000
139 
140     public static final int SIZE = 16; // 0x10
141 
142     public static final java.lang.Class<java.lang.Short> TYPE;
143 
144     static {
145         TYPE = null;
146     }
147 
148     private static final long serialVersionUID = 7515723908773894738L; // 0x684d37133460da52L
149 
150     /**
151      * @deprecated Use {@link #shortValue()}.
152      */
153     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P)
154     private final short value;
155 
156     {
157         value = 0;
158     }
159 
160     @SuppressWarnings({"unchecked", "deprecation", "all"})
161     private static class ShortCache {
162 
ShortCache()163         private ShortCache() {
164             throw new RuntimeException("Stub!");
165         }
166 
167         static final java.lang.Short[] cache;
168 
169         static {
170             cache = new java.lang.Short[0];
171         }
172     }
173 }
174