| java.lang.Object java.lang.Short
Short | final public class Short (Code) | | The Short class is the standard wrapper for short values.
version: 12/17/01 (CLDC 1.1) since: JDK1.1, CLDC 1.0 |
Field Summary | |
final public static short | MAX_VALUE The maximum value a Short can have. | final public static short | MIN_VALUE The minimum value a Short can have. |
Constructor Summary | |
public | Short(short value) Constructs a Short object initialized to the specified short value. |
Method Summary | |
public boolean | equals(Object obj) Compares this object to the specified object. | public int | hashCode() Returns a hashcode for this Short. | public static short | parseShort(String s) Assuming the specified String represents a short, returns
that short's value. | public static short | parseShort(String s, int radix) Assuming the specified String represents a short, returns
that short's value in the radix specified by the second
argument. | public short | shortValue() Returns the value of this Short as a short. | public String | toString() Returns a String object representing this Short's value. |
MAX_VALUE | final public static short MAX_VALUE(Code) | | The maximum value a Short can have.
|
MIN_VALUE | final public static short MIN_VALUE(Code) | | The minimum value a Short can have.
|
Short | public Short(short value)(Code) | | Constructs a Short object initialized to the specified short value.
Parameters: value - the initial value of the Short |
equals | public boolean equals(Object obj)(Code) | | Compares this object to the specified object.
Parameters: obj - the object to compare with true if the objects are the same; false otherwise. |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this Short.
|
parseShort | public static short parseShort(String s) throws NumberFormatException(Code) | | Assuming the specified String represents a short, returns
that short's value. Throws an exception if the String cannot
be parsed as a short. The radix is assumed to be 10.
Parameters: s - the String containing the short The short value represented by the specified string exception: NumberFormatException - If the string does notcontain a parsable short. |
parseShort | public static short parseShort(String s, int radix) throws NumberFormatException(Code) | | Assuming the specified String represents a short, returns
that short's value in the radix specified by the second
argument. Throws an exception if the String cannot
be parsed as a short.
Parameters: s - the String containing the short Parameters: radix - the radix to be used The short value represented by the specified string inthe specified radix. exception: NumberFormatException - If the String does notcontain a parsable short. |
shortValue | public short shortValue()(Code) | | Returns the value of this Short as a short.
the value of this Short as a short. |
toString | public String toString()(Code) | | Returns a String object representing this Short's value.
|
|
|