Package java.lang
Class Short
- java.lang.Object
-
- java.lang.Number
-
- java.lang.Short
-
- All Implemented Interfaces:
Serializable
,Comparable
public final class Short extends Number implements Comparable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(Object var0)
int
compareTo(Short var0)
static Short
decode(String var0)
double
doubleValue()
boolean
equals(Object var0)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
static short
parseShort(String var0)
static short
parseShort(String var0, int var1)
short
shortValue()
String
toString()
static String
toString(short var0)
static Short
valueOf(String var0)
static Short
valueOf(String var0, int var1)
-
-
-
Field Detail
-
MAX_VALUE
public static final short MAX_VALUE
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final short MIN_VALUE
- See Also:
- Constant Field Values
-
TYPE
public static final Class TYPE
-
-
Constructor Detail
-
Short
public Short(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
Short
public Short(short var0)
-
-
Method Detail
-
compareTo
public int compareTo(Object var0)
- Specified by:
compareTo
in interfaceComparable
-
compareTo
public int compareTo(Short var0)
-
decode
public static Short decode(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
parseShort
public static short parseShort(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
parseShort
public static short parseShort(String var0, int var1) throws NumberFormatException
- Throws:
NumberFormatException
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classNumber
-
toString
public static String toString(short var0)
-
valueOf
public static Short valueOf(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
valueOf
public static Short valueOf(String var0, int var1) throws NumberFormatException
- Throws:
NumberFormatException
-
-