| java.lang.Object | ||
| ↳ | java.lang.Number | |
| ↳ | java.lang.Short | |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| short | MAX_VALUE |
Constant for the maximum |
|||||||||
| short | MIN_VALUE |
Constant for the minimum |
|||||||||
| int | SIZE |
Constant for the number of bits to represent a |
|||||||||
| Class<Short> | TYPE | The java.lang.Class that represents this class. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of this class given a string.
| |||||||||||
Constructs a new instance of the receiver which represents the short
valued argument.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the byte value which the receiver represents
| |||||||||||
Compares this | |||||||||||
Parses the string argument as if it was a short value and returns the
result.
| |||||||||||
Returns the double value which the receiver represents
| |||||||||||
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
| |||||||||||
Returns the float value which the receiver represents
| |||||||||||
Returns an integer hash code for the receiver.
| |||||||||||
Returns the int value which the receiver represents
| |||||||||||
Returns the long value which the receiver represents
| |||||||||||
Parses the string argument as if it was a short value and returns the
result.
| |||||||||||
Parses the string argument as if it was a short value and returns the
result.
| |||||||||||
Reverses the bytes of a | |||||||||||
Returns the short value which the receiver represents
| |||||||||||
Returns a string containing a concise, human-readable description of the
argument.
| |||||||||||
Returns a string containing a concise, human-readable description of the
receiver.
| |||||||||||
Parses the string argument as if it was a short value and returns a Short
representing the result.
| |||||||||||
Parses the string argument as if it was a short value and returns a Short
representing the result.
| |||||||||||
Returns a | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Number
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface java.lang.Comparable
| |||||||||||
Constant for the maximum short value, 215-1.
Constant for the minimum short value, -215.
Constant for the number of bits to represent a short in
two's compliment form.
Constructs a new instance of this class given a string.
| string | a string representation of a short quantity. |
|---|
| NumberFormatException | if the argument could not be parsed as a short quantity. |
|---|
Constructs a new instance of the receiver which represents the short valued argument.
| value | the short to store in the new instance. |
|---|
Returns the byte value which the receiver represents
Compares this Short to the Short
passed. If this instance's value is equal to the value of the instance
passed, then 0 is returned. If this instance's value is less than the
value of the instance passed, then a negative value is returned. If this
instance's value is greater than the value of the instance passed, then a
positive value is returned.
| object | The instance to compare to. |
|---|
| NullPointerException | if object is
null. |
|---|
Parses the string argument as if it was a short value and returns the result. Throws NumberFormatException if the string does not represent an int quantity. The string may be a hexadecimal ("0x..."), octal ("0..."), or decimal ("...") representation of a byte.
| string | a string representation of a short quantity. |
|---|
| NumberFormatException | if the argument could not be parsed as a short quantity. |
|---|
Returns the double value which the receiver represents
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
In this case, the argument must also be a Short, and the receiver and argument must represent the same short value.
| object | the object to compare with this object |
|---|
true if the object is the same as this object
false if it is different from this objectReturns the float value which the receiver represents
Returns an integer hash code for the receiver. Any two objects which
answer true when passed to equals must
answer the same value for this method.
Returns the int value which the receiver represents
Returns the long value which the receiver represents
Parses the string argument as if it was a short value and returns the result. Throws NumberFormatException if the string does not represent an short quantity.
| string | a string representation of a short quantity. |
|---|
| NumberFormatException | if the argument could not be parsed as a short quantity. |
|---|
Parses the string argument as if it was a short value and returns the result. Throws NumberFormatException if the string does not represent a single short quantity. The second argument specifies the radix to use when parsing the value.
| string | a string representation of a short quantity. |
|---|---|
| radix | the radix to use when parsing. |
| NumberFormatException | if the argument could not be parsed as a short quantity. |
|---|
Reverses the bytes of a short.
| s | The short to reverse. |
|---|
Returns the short value which the receiver represents
Returns a string containing a concise, human-readable description of the argument.
| value | short the short to convert. |
|---|
Returns a string containing a concise, human-readable description of the receiver.
Parses the string argument as if it was a short value and returns a Short representing the result. Throws NumberFormatException if the string does not represent a short quantity. The second argument specifies the radix to use when parsing the value.
| string | a string representation of a short quantity. |
|---|---|
| radix | the radix to use when parsing. |
| NumberFormatException | if the argument could not be parsed as a short quantity. |
|---|
Parses the string argument as if it was a short value and returns a Short representing the result. Throws NumberFormatException if the string does not represent a single short quantity.
| string | a string representation of a short quantity. |
|---|
| NumberFormatException | if the argument could not be parsed as a short quantity. |
|---|
Returns a Short instance for the short
value passed. This method is preferred over the constructor, as this
method may maintain a cache of instances.
| s | The short value. |
|---|
Short instance.