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
Standard wrapper for short, as specified by the standard
Java API.
Compliance: CLDC: 1.0 complete
Compliance: J2SE: 1.4 incomplete
- See Also:
- Serialized Form
|
Constructor Summary |
Short(short value)
|
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
Short
public Short(short value)
parseShort
public static short parseShort(String string)
throws NumberFormatException
- Throws:
NumberFormatException
parseShort
public static short parseShort(String string,
int radix)
throws NumberFormatException
- Throws:
NumberFormatException
byteValue
public byte byteValue()
- Specified by:
byteValue in class Number
shortValue
public short shortValue()
- Specified by:
shortValue in class Number
intValue
public int intValue()
- Specified by:
intValue in class Number
longValue
public long longValue()
- Specified by:
longValue in class Number
floatValue
public float floatValue()
- Specified by:
floatValue in class Number
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class Number
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
compareTo
public int compareTo(Short other)
compareTo
public int compareTo(Object other)
- Specified by:
compareTo in interface Comparable