java.lang
Class Object

java.lang.Object

public class Object

Java 클래스 계층의 루트 클래스.


Constructor Summary
Object()
           
 
Method Summary
 boolean equals(Object o)
          현 객체와 매개변수로 전달된 객체 값이 일치함을 검사한다.
 Class getClass()
          현 객체의 클래스를 구한다.
 int hashCode()
          현 객체의 해쉬코드 값을 구한다.
 void notify()
          현 객체에 대해 wait하고 있는 쓰레드들 중 하나를 깨운다.
 void notifyAll()
          현 객체에 대해 wait하고 있는 쓰레드를 모두 깨운다.
 String toString()
          현 객체를 나타내는 문자열을 구한다.
 void wait()
          다른 쓰레드가 notify나 notifyAll할 때 까지 wait한다.
 void wait(long ms)
          다른 쓰레드가 notify나 notifyAll할 때 까지 wait한다.
 void wait(long ms, int ns)
          다른 쓰레드가 notify나 notifyAll할 때 까지 wait한다.
 

Constructor Detail

Object

public Object()
Method Detail

equals

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

getClass

public final Class getClass()
현 객체의 클래스를 구한다.
Returns:
java.lang.Class형인 현 객체의 클래스 객체.

hashCode

public int hashCode()
현 객체의 해쉬코드 값을 구한다.
Returns:
현 객체의 정수형 해쉬코드.

notify

public final void notify()
현 객체에 대해 wait하고 있는 쓰레드들 중 하나를 깨운다.

notifyAll

public final void notifyAll()
현 객체에 대해 wait하고 있는 쓰레드를 모두 깨운다.

toString

public String toString()
현 객체를 나타내는 문자열을 구한다.
Returns:
현 객체를 나타내는 문자열.

wait

public final void wait()
                throws IllegalMonitorStateException,
                       InterruptedException
다른 쓰레드가 notify나 notifyAll할 때 까지 wait한다.
Throws:
IllegalMonitorStateException - 현 쓰레드가 현 객체 모니터를 소유하지 않았을 때 발생.
InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.

wait

public final void wait(long ms)
                throws IllegalMonitorStateException,
                       InterruptedException
다른 쓰레드가 notify나 notifyAll할 때 까지 wait한다. 단 ms시간이 지난 후엔 스스로 깨어난다.
Parameters:
ms - Long타입의 timeout milliseconds 시간.
Throws:
IllegalMonitorStateException - 현 쓰레드가 현 객체 모니터를 소유하지 않았을 때 발생.
InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.

wait

public final void wait(long ms,
                       int ns)
                throws IllegalMonitorStateException,
                       InterruptedException
다른 쓰레드가 notify나 notifyAll할 때 까지 wait한다. 단 ms+ns시간이 지난 후엔 스스로 깨어난다.
Parameters:
ms - Long타입의 timeout milliseconds 시간.
ns - Int타입의 timeout nanoseconds 시간.
Throws:
IllegalMonitorStateException - 현 쓰레드가 현 객체 모니터를 소유하지 않았을 때 발생.
InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.


AromaSoft Corp. Proprietary and Confidential

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