java.lang
Class Short

java.lang.Object
  |
  +--java.lang.Number
        |
        +--java.lang.Short
All Implemented Interfaces:
Comparable, java.io.Serializable

public final synchronized class Short
extends Number
implements Comparable

See Also:
Serialized Form

Field Summary
static short MAX_VALUE
           
static short MIN_VALUE
           
private static long serialVersionUID
           
static Class TYPE
           
private  short value
           
 
Constructor Summary
Short(short)
           
Short(String)
           
 
Method Summary
(package private) static void ()
           
 byte byteValue()
           
 int compareTo(Object)
           
 int compareTo(Short)
           
static Short decode(String)
           
 double doubleValue()
           
 boolean equals(Object)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static short parseShort(String)
           
static short parseShort(String, int)
           
 short shortValue()
           
 String toString()
           
static String toString(short)
           
static Short valueOf(String)
           
static Short valueOf(String, int)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_VALUE

public static final short MIN_VALUE
See Also:
Constant Field Values

MAX_VALUE

public static final short MAX_VALUE
See Also:
Constant Field Values

TYPE

public static final Class TYPE

value

private short value

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Short

public Short(short)

Short

public Short(String)
      throws NumberFormatException
Method Detail

toString

public static String toString(short)

parseShort

public static short parseShort(String)
                        throws NumberFormatException
NumberFormatException

parseShort

public static short parseShort(String,
                               int)
                        throws NumberFormatException
NumberFormatException

valueOf

public static Short valueOf(String,
                            int)
                     throws NumberFormatException
NumberFormatException

valueOf

public static Short valueOf(String)
                     throws NumberFormatException
NumberFormatException

decode

public static Short decode(String)
                    throws NumberFormatException
NumberFormatException

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

shortValue

public short shortValue()
Overrides:
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)
Overrides:
equals in class Object

compareTo

public int compareTo(Short)

compareTo

public int compareTo(Object)
Specified by:
compareTo in interface Comparable

static void ()