콘텐츠로 이동

Class Byte

package java.lang

java.lang.Object
|
+--java.lang.Byte

extends Object:

Byte 클래스는 바이트 값의 표준 래퍼입니다.

Since:

  • JDK1.1, CLDC 1.0
  • static byte MAX_VALUE — Byte가 가질 수 있는 최대값
  • static byte MIN_VALUE — Byte가 가질 수 있는 최소값
  • Byte (byte value) 지정된 바이트 값으로 초기화되는 Byte 객체를 구성합니다.
  • byte byteValue () — 이 Byte 값을 바이트로 반환합니다.
  • boolean equals ( Object obj) — 이 객체를 지정된 객체와 비교합니다.
  • int hashCode () — 이 Byte의 해시 코드를 반환합니다.
  • static byte parseByte ( String s) — 지정된 문자열이 한 바이트를 나타내는 경우 해당 바이트의 값을 반환합니다.
  • static byte parseByte ( String s, int radix) — 지정된 문자열이 한 바이트를 나타내는 경우 해당 바이트의 값을 반환합니다.
  • String toString () — 이 Byte의 값을 나타내는 문자열 객체를 반환합니다.
public static final byte MIN_VALUE

See Also:

  • Constant Field Values
public static final byte MAX_VALUE

See Also:

  • Constant Field Values
public Byte(byte value)
  • 지정된 바이트 값으로 초기화되는 Byte 객체를 구성합니다.

Parameters:

  • value - Byte의 초기값
public static byte parseByte(String s)
throws NumberFormatException

Parameters:

  • s - 해당 바이트를 포함하는 문자열

Returns:

  • 구문 분석된 바이트 값

Throws:

  • NumberFormatException - 문자열에 구문 분석 가능한 바이트가 없는 경우
public static byte parseByte(String s,
int radix)
throws NumberFormatException

Parameters:

  • radix - 사용되는 기수

Returns:

  • 구문 분석된 바이트 값

Throws:

  • NumberFormatException - 문자열에 구문 분석 가능한 정수가 없는 경우
public byte byteValue()

Returns:

  • 이 Byte 값(바이트)
public String toString()

Overrides:

  • toString in class Object

Returns:

  • 객체의 문자열 표현
public int hashCode()

Overrides:

  • hashCode in class Object

Returns:

  • 이 객체의 해시 코드 값

See Also:

  • Object.equals(java.lang.Object), Hashtable
public boolean equals(Object obj)

Overrides:

  • equals in class Object

Parameters:

  • obj - 비교할 객체

Returns:

  • 두 객체가 동일하면 true, 다르면 false

See Also:

  • Boolean.hashCode(), Hashtable
public Byte(byte value)
  • 지정된 바이트 값으로 초기화되는 Byte 객체를 구성합니다.

Parameters:

  • value - Byte의 초기값
public static byte parseByte(String s)
throws NumberFormatException

Parameters:

  • s - 해당 바이트를 포함하는 문자열

Returns:

  • 구문 분석된 바이트 값

Throws:

  • NumberFormatException - 문자열에 구문 분석 가능한 바이트가 없는 경우
public static byte parseByte(String s,
int radix)
throws NumberFormatException

Parameters:

  • radix - 사용되는 기수

Returns:

  • 구문 분석된 바이트 값

Throws:

  • NumberFormatException - 문자열에 구문 분석 가능한 정수가 없는 경우
public byte byteValue()

Returns:

  • 이 Byte 값(바이트)
public String toString()

Overrides:

  • toString in class Object

Returns:

  • 객체의 문자열 표현
public int hashCode()

Overrides:

  • hashCode in class Object

Returns:

  • 이 객체의 해시 코드 값

See Also:

  • Object.equals(java.lang.Object), Hashtable
public boolean equals(Object obj)

Overrides:

  • equals in class Object

Parameters:

  • obj - 비교할 객체

Returns:

  • 두 객체가 동일하면 true, 다르면 false

See Also:

  • Boolean.hashCode(), Hashtable
public static byte parseByte(String s)
throws NumberFormatException

Parameters:

  • s - 해당 바이트를 포함하는 문자열

Returns:

  • 구문 분석된 바이트 값

Throws:

  • NumberFormatException - 문자열에 구문 분석 가능한 바이트가 없는 경우
public static byte parseByte(String s,
int radix)
throws NumberFormatException

Parameters:

  • radix - 사용되는 기수

Returns:

  • 구문 분석된 바이트 값

Throws:

  • NumberFormatException - 문자열에 구문 분석 가능한 정수가 없는 경우
public byte byteValue()

Returns:

  • 이 Byte 값(바이트)
public String toString()

Overrides:

  • toString in class Object

Returns:

  • 객체의 문자열 표현
public int hashCode()

Overrides:

  • hashCode in class Object

Returns:

  • 이 객체의 해시 코드 값

See Also:

  • Object.equals(java.lang.Object), Hashtable
public boolean equals(Object obj)

Overrides:

  • equals in class Object

Parameters:

  • obj - 비교할 객체

Returns:

  • 두 객체가 동일하면 true, 다르면 false

See Also:

  • Boolean.hashCode(), Hashtable