| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Short
public final class Short
The Short class is the standard wrapper for short values.
| Field Summary | |
|---|---|
| static short | MAX_VALUEThe maximum value a Short can have. | 
| static short | MIN_VALUEThe minimum value a Short can have. | 
| Constructor Summary | |
|---|---|
| Short(short value)Constructs a Short object initialized to the specified short value. | |
| Method Summary | |
|---|---|
|  boolean | equals(Object obj)Compares this object to the specified object. | 
|  int | hashCode()Returns a hashcode for this Short. | 
| static short | parseShort(String s)Assuming the specified String represents a short, returns that short's value. | 
| 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. | 
|  short | shortValue()Returns the value of this Short as a short. | 
|  String | toString()Returns a String object representing this Short's value. | 
| static Short | valueOf(short val) | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final short MIN_VALUE
public static final short MAX_VALUE
| Constructor Detail | 
|---|
public Short(short value)
value - the initial value of the Short| Method Detail | 
|---|
public static short parseShort(String s)
                        throws NumberFormatException
s - the String containing the short
NumberFormatException - If the string does not
                contain a parsable short.
public static short parseShort(String s,
                               int radix)
                        throws NumberFormatException
s - the String containing the shortradix - the radix to be used
NumberFormatException - If the String does not
                contain a parsable short.public short shortValue()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object), 
Hashtablepublic boolean equals(Object obj)
equals in class Objectobj - the object to compare with
Boolean.hashCode(), 
Hashtablepublic static Short valueOf(short val)
| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||