全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス
クラス java.lang.Byte
java.lang.Object
|
+----java.lang.Number
|
+----java.lang.Byte
- public final class Byte
- extends Number
Byte クラスは、バイト値の標準ラッパーです。
- 参照:
- Number
-
MAX_VALUE
- Byte の許容最小値である。
-
MIN_VALUE
- Byte の許容最高値である。
-
TYPE
- プリミティブ型のバイトを表す Class オブジェクトである。
-
Byte(byte)
- 指定の byte 値で初期化された Byte オブジェクトを構築する。
-
Byte(String)
- String パラメータで指定された値で初期化された Byte オブジェクトを構築する。
-
byteValue()
- この Byte の値を byte として返す。
-
decode(String)
- String を Byte にデコードする。
-
doubleValue()
- この Byte の値を double として返す。
-
equals(Object)
- このオブジェクトと指定オブジェクトを比較する。
-
floatValue()
- この Byte の値を float として返す。
-
hashCode()
- この Byte のハッシュコードを返す。
-
intValue()
- この Byte の値を int として返す。
-
longValue()
- この Byte の値を long として返す。
-
parseByte(String)
- 指定の String が byte を表すと仮定し、そのバイト値を返す。
-
parseByte(String, int)
- 指定の String が byte を表すと仮定し、そのバイト値を返す。
-
shortValue()
- この Byte を short として返す。
-
toString()
- この Byte の値を表す String オブジェクトを返す。
-
toString(byte)
- 指定の Byte の値を表す新規の String オブジェクトを返す。
-
valueOf(String)
- 指定の String が byte を表すと仮定し、その値に初期化された新規の Byte オブジェクトを返す。
-
valueOf(String, int)
- 指定の String が byte を表すと仮定し、その値に初期化された新規の Byte オブジェクトを返す。
MIN_VALUE
public static final byte MIN_VALUE
- Byte の許容最高値です。
MAX_VALUE
public static final byte MAX_VALUE
- Byte の許容最小値です。
TYPE
public static final Class TYPE
- プリミティブ型のバイトを表す Class オブジェクトです。
Byte
public Byte(byte value)
- 指定のバイト値で初期化された Byte オブジェクトを構築します。
- パラメータ:
- value - Byte の初期値
Byte
public Byte(String s) throws NumberFormatException
- String パラメータの指定された値で初期化された Byte オブジェクトを構築します。基数は 10 です。
- パラメータ:
- s - Byte に変換する String
- 例外: NumberFormatException
- String が
解析可能なバイトを含まない場合
toString
public static String toString(byte b)
- 指定の Byte を表す新規の String オブジェクトを返します。基数は 10 です。
- パラメータ:
- b - 変換するバイト
parseByte
public static byte parseByte(String s) throws NumberFormatException
- 指定 String が byte を表すと仮定し、そのバイト値を返します。String をバイトとして解析できない場合は、例外をスローします。基数は 10 です。
- パラメータ:
- s - バイト値を含む String
- 例外: NumberFormatException
- String が
解析可能なバイトを含まない場合
parseByte
public static byte parseByte(String s,
int radix) throws NumberFormatException
- 指定の String が byte を表すと仮定し、そのバイト値を返します。String をバイトとして解析できない場合は、例外をスローします。
- パラメータ:
- s - バイト値を含む String
- radix - 使用する基数
- 例外: NumberFormatException
- String が
解析可能なバイトを含まない場合
valueOf
public static Byte valueOf(String s,
int radix) throws NumberFormatException
- 指定の String が byte を表すと仮定し、その値で初期化された新規の Byte オブジェクトを返します。String をバイトとして解析できない場合は、例外をスローします。
- パラメータ:
- s - 整数型を含む String
- radix - 使用する基数
- 例外: NumberFormatException
- String が
解析可能なバイトを含まない場合
valueOf
public static Byte valueOf(String s) throws NumberFormatException
- 指定の String が byte を表すと仮定し、その値で初期化された新規 Byte オブジェクトを返します。String をバイトとして解析できない場合は、例外をスローします。
基数は 10 です。
- パラメータ:
- s - 整数型を含む String
- 例外: NumberFormatException
- String が
解析可能なバイトを含まない場合
decode
public static Byte decode(String nm) throws NumberFormatException
- Stringを Byte にデコードします。String は、10 進数、16 進数、8 進数のどれでも指定できます。
- パラメータ:
- nm - デコードする文字列
byteValue
public byte byteValue()
- この Byte の値を byte として返します。
- オーバーライド:
- クラス Number 内の byteValue
shortValue
public short shortValue()
- この Byte の値を short として返します。
- オーバーライド:
- クラス Number 内の shortValue
intValue
public int intValue()
- この Byte の値を int として返します。
- オーバーライド:
- クラス Number 内の intValue
longValue
public long longValue()
- この Byte の値を long として返します。
- オーバーライド:
- クラス Number 内の longValue
floatValue
public float floatValue()
- この Byte の値を float として返します。
- オーバーライド:
- クラス Number 内の floatValue
doubleValue
public double doubleValue()
- この Byte の値を double として返します。
- オーバーライド:
- クラス Number 内の doubleValue
toString
public String toString()
- この Byte の値を表す String オブジェクトを返します。
- オーバーライド:
- クラス Object 内の toString
hashCode
public int hashCode()
- この Byte のハッシュコードを返します。
- オーバーライド:
- クラス Object 内の hashCode
equals
public boolean equals(Object obj)
- このオブジェクトと指定されたオブジェクトを比較します。
- パラメータ:
- obj - 比較するオブジェクト
- 返り値:
- オブジェクトが同じ場合は true; 違う場合は false
- オーバーライド:
- クラス Object 内の equals
全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス