public final class Short extends Number implements Comparable<Short>
| Modifier and Type | Field and Description |
|---|---|
static short |
MAX_VALUE |
static short |
MIN_VALUE |
| Constructor and Description |
|---|
Short(short value) |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(short s1,
short s2) |
int |
compareTo(Short another) |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
static short |
parseShort(String s) |
static short |
parseShort(String s,
int radix) |
short |
shortValue() |
String |
toString() |
static Short |
valueOf(short i) |
public static final short MAX_VALUE
public static final short MIN_VALUE
public static short parseShort(String s) throws NumberFormatException
NumberFormatExceptionpublic static short parseShort(String s, int radix) throws NumberFormatException
NumberFormatExceptionpublic short shortValue()
shortValue in class Numberpublic static Short valueOf(short i)
public float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic int compareTo(Short another)
compareTo in interface Comparable<Short>public static int compare(short s1,
short s2)
Copyright © 2026. All rights reserved.