java.lang
Class Byte

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

public final class Byte
extends Object

Primitive 타입인 Byte 타입을 지원하기 위한 Wrap 클래스.


Field Summary
static byte MAX_VALUE
          Byte형의 최대값.
static byte MIN_VALUE
          Byte형의 최소값.
 
Constructor Summary
Byte(byte value)
          Byte형 객체를 생성한다.
 
Method Summary
 byte byteValue()
          현 객체의 값을 구한다.
 boolean equals(Object obj)
          현 객체와 매개변수로 전달된 객체 값이 일치함을 검사한다.
 int hashCode()
          현 Byte형 객체의 해쉬코드를 구한다.
static byte parseByte(String s)
          문자열을 10진법에의해 Byte형으로 변환한다.
static byte parseByte(String s, int radix)
          문자열을 특정 진법에의해 Byte형으로 변환한다.
 String toString()
          현 객체 값을 표현할 수 있는 문자열을 구한다.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_VALUE

public static final byte MIN_VALUE
Byte형의 최소값.

MAX_VALUE

public static final byte MAX_VALUE
Byte형의 최대값.
Constructor Detail

Byte

public Byte(byte value)
Byte형 객체를 생성한다.
Parameters:
value - 초기값.
Method Detail

hashCode

public int hashCode()
현 Byte형 객체의 해쉬코드를 구한다.
Overrides:
hashCode in class Object
Returns:
정수형의 해쉬코드.

equals

public boolean equals(Object obj)
현 객체와 매개변수로 전달된 객체 값이 일치함을 검사한다.
Overrides:
equals in class Object
Parameters:
obj - 비교할 대상.
Returns:
두 객체가 모두 같은 값을 가지면 참 아니면 거짓.

toString

public String toString()
현 객체 값을 표현할 수 있는 문자열을 구한다.
Overrides:
toString in class Object
Returns:
현 객체의 값을 나타내는 문자열.

parseByte

public static byte parseByte(String s)
                      throws NumberFormatException
문자열을 10진법에의해 Byte형으로 변환한다.
Parameters:
s - 변환할 문자열.
Returns:
변환된 Byte형 값.
Throws:
NumberFormatException - 변환할 수 없는 문자열일 때 발생.

parseByte

public static byte parseByte(String s,
                             int radix)
                      throws NumberFormatException
문자열을 특정 진법에의해 Byte형으로 변환한다.
Parameters:
s - 변환할 문자열.
radix - 변환시 사용할 진법.
Returns:
변환된 Byte형 값.
Throws:
NumberFormatException - 변환할 수 없는 문자열일 때 발생.

byteValue

public byte byteValue()
현 객체의 값을 구한다.
Returns:
현 객체의 값.


AromaSoft Corp. Proprietary and Confidential

(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com