java.lang.Object | +--java.lang.Short
Short クラスは short 値の標準ラッパーです。
フィールドの概要 | |
static short |
MAX_VALUE
Short が持つことのできる最大値です。 |
static short |
MIN_VALUE
Short が持つことのできる最小値です。 |
コンストラクタの概要 | |
Short(short value)
指定された short 値に初期化された Short オブジェクト構築します。 |
メソッドの概要 | |
boolean |
equals(Object obj)
このオブジェクトを指定されたオブジェクトと比較します。 |
int |
hashCode()
この Short のハッシュコードを返します。 |
static short |
parseShort(String s)
指定された文字列が short を表すと仮定して、その short 値を返します。 |
static short |
parseShort(String s,
int radix)
指定された文字列が short を表すと仮定して、その short 値を返します。 |
short |
shortValue()
この Short の値を short として返します。 |
String |
toString()
この Short の値を表す String オブジェクトを返します。 |
クラス java.lang.Object から継承したメソッド |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
フィールドの詳細 |
public static final short MIN_VALUE
public static final short MAX_VALUE
コンストラクタの詳細 |
public Short(short value)
value
- Short の初期値メソッドの詳細 |
public static short parseShort(String s) throws NumberFormatException
s
- short を含む Stringpublic static short parseShort(String s, int radix) throws NumberFormatException
s
- short を含む Stringradix
- 使用される基数public short shortValue()
public String toString()
public int hashCode()
Object.equals(java.lang.Object)
,
Hashtable
public boolean equals(Object obj)
obj
- 比較対象のオブジェクト