DCT Lightfoot v3 API specification

java.lang
Class Short

java.lang.Object
  |
  +--java.lang.Short

public class Short
extends Object

This represents shorts


Field Summary
static short MAX_VALUE
          The largest short
static short MIN_VALUE
          The smallest short
 
Constructor Summary
Short(short value)
          Create a new short
 
Method Summary
 boolean equals(Object obj)
          Test if it is equals
 int hashCode()
          Return the hash value - the int value
static short parseShort(java.lang.String s)
          Parse the String as a decimal short
static short parseShort(java.lang.String s, int radix)
          Parse a string and return a short
 short shortValue()
          Get the value as a short value
 java.lang.String toString()
          Convert to a string
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final short MAX_VALUE
The largest short

See Also:
Constant Field Values

MIN_VALUE

public static final short MIN_VALUE
The smallest short

See Also:
Constant Field Values
Constructor Detail

Short

public Short(short value)
Create a new short

Parameters:
value - The value
Method Detail

parseShort

public static short parseShort(java.lang.String s,
                               int radix)
                        throws NumberFormatException
Parse a string and return a short

Parameters:
s - The string
radix - The radix
Returns:
the short
Throws:
NumberFormatException - if the number is not valid

parseShort

public static short parseShort(java.lang.String s)
                        throws NumberFormatException
Parse the String as a decimal short

Parameters:
s - The string
Returns:
the value
Throws:
NumberFormatException - if the number is not valid

shortValue

public short shortValue()
Get the value as a short value

Returns:
the short value

toString

public java.lang.String toString()
Convert to a string

Overrides:
toString in class Object
Returns:
the string

hashCode

public int hashCode()
Return the hash value - the int value

Overrides:
hashCode in class Object
Returns:
the hash value

equals

public boolean equals(Object obj)
Test if it is equals

Overrides:
equals in class Object
Parameters:
obj - The other object
Returns:
true if the object is a valid short containing the same value.

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification