java.lang
Class Short

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Short

public final class Short
extends Number

Wrapper class for shorts.

Author:
Sven Köhler

Field Summary
static short MAX_VALUE
           
static short MIN_VALUE
           
static int SIZE
           
 
Constructor Summary
Short(short value)
           
Short(String s)
           
 
Method Summary
 byte byteValue()
          Return the byte value of this Number.
 int compareTo(Object o)
           
 double doubleValue()
          Return the double value of this Number.
 boolean equals(Object o)
           
 float floatValue()
          Return the float value of this Number.
 int hashCode()
           
 int intValue()
          Return the int value of this Number.
 long longValue()
          Return the long value of this Number.
static short parseShort(String s)
           
static short parseShort(String s, int radix)
           
static short reverseBytes(short s)
           
 short shortValue()
          Return the short value of this Number.
 String toString()
           
static String toString(short b)
           
static Short valueOf(short b)
           
static Short valueOf(String s)
           
static Short valueOf(String s, int radix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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

SIZE

public static final int SIZE
See Also:
Constant Field Values
Constructor Detail

Short

public Short(short value)

Short

public Short(String s)
Method Detail

byteValue

public byte byteValue()
Description copied from class: Number
Return the byte value of this Number.

Overrides:
byteValue in class Number
Returns:
the byte value

compareTo

public int compareTo(Object o)

doubleValue

public double doubleValue()
Description copied from class: Number
Return the double value of this Number.

Specified by:
doubleValue in class Number
Returns:
the double value

equals

public boolean equals(Object o)
Overrides:
equals in class Object

floatValue

public float floatValue()
Description copied from class: Number
Return the float value of this Number.

Specified by:
floatValue in class Number
Returns:
the float value

hashCode

public int hashCode()
Overrides:
hashCode in class Object

intValue

public int intValue()
Description copied from class: Number
Return the int value of this Number.

Specified by:
intValue in class Number
Returns:
the int value

longValue

public long longValue()
Description copied from class: Number
Return the long value of this Number.

Specified by:
longValue in class Number
Returns:
the long value

parseShort

public static short parseShort(String s)
                        throws NumberFormatException
Throws:
NumberFormatException

parseShort

public static short parseShort(String s,
                               int radix)
                        throws NumberFormatException
Throws:
NumberFormatException

reverseBytes

public static short reverseBytes(short s)

shortValue

public short shortValue()
Description copied from class: Number
Return the short value of this Number.

Overrides:
shortValue in class Number
Returns:
the short value

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(short b)

valueOf

public static Short valueOf(short b)

valueOf

public static Short valueOf(String s)

valueOf

public static Short valueOf(String s,
                            int radix)