Modifier and Type | Field and Description |
---|---|
static short |
MAX_VALUE
A constant holding the maximum value.
|
static short |
MIN_VALUE
A constant holding the minimum value.
|
Constructor and Description |
---|
Short(short value)
Initializes this Short object with the specified short value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Short other)
Compares this Short object to the specified Short object numerically.
|
short |
shortValue()
Returns the value of this Short object as a short.
|
public static short MAX_VALUE
public static short MIN_VALUE
public Short(short value) throws java.lang.IllegalArgumentException
value
- the value to be represented by this Short object.java.lang.IllegalArgumentException
- if the specified short value is negative.public short shortValue()
public int compareTo(Short other)
compareTo
in interface java.lang.Comparable<Short>
other
- the Short object to which this Short object be compared.