Class Object
package java.lang
java.lang.Objectpublic class Object:
Java 클래스 계층의 루트 클래스.
생성자 요약
섹션 제목: “생성자 요약”- Object ()
메서드 요약
섹션 제목: “메서드 요약”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한다.
생성자 상세
섹션 제목: “생성자 상세”Object
섹션 제목: “Object”public Object()equals
섹션 제목: “equals”public boolean equals(Object o)Parameters:
obj- 비교할 대상.
Returns:
- 두 객체가 모두 같은 값을 가지면 참 아니면 거짓.
getClass
섹션 제목: “getClass”public final Class getClass()Returns:
- java.lang.Class형인 현 객체의 클래스 객체.
hashCode
섹션 제목: “hashCode”public int hashCode()Returns:
- 현 객체의 정수형 해쉬코드.
notify
섹션 제목: “notify”public final void notify()- 현 객체에 대해 wait하고 있는 쓰레드들 중 하나를 깨운다.
notifyAll
섹션 제목: “notifyAll”public final void notifyAll()- 현 객체에 대해 wait하고 있는 쓰레드를 모두 깨운다.
toString
섹션 제목: “toString”public String toString()Returns:
- 현 객체를 나타내는 문자열.
wait
섹션 제목: “wait”public final void wait() throws IllegalMonitorStateException, InterruptedExceptionThrows:
InterruptedException- 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
wait
섹션 제목: “wait”public final void wait(long ms) throws IllegalMonitorStateException, InterruptedExceptionParameters:
ms- Long타입의 timeout milliseconds 시간.
Throws:
InterruptedException- 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
wait
섹션 제목: “wait”public final void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedExceptionParameters:
ns- Int타입의 timeout nanoseconds 시간.
Throws:
InterruptedException- 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.## 메서드 상세
equals
섹션 제목: “equals”public boolean equals(Object o)Parameters:
obj- 비교할 대상.
Returns:
- 두 객체가 모두 같은 값을 가지면 참 아니면 거짓.
getClass
섹션 제목: “getClass”public final Class getClass()Returns:
- java.lang.Class형인 현 객체의 클래스 객체.
hashCode
섹션 제목: “hashCode”public int hashCode()Returns:
- 현 객체의 정수형 해쉬코드.
notify
섹션 제목: “notify”public final void notify()- 현 객체에 대해 wait하고 있는 쓰레드들 중 하나를 깨운다.
notifyAll
섹션 제목: “notifyAll”public final void notifyAll()- 현 객체에 대해 wait하고 있는 쓰레드를 모두 깨운다.
toString
섹션 제목: “toString”public String toString()Returns:
- 현 객체를 나타내는 문자열.
wait
섹션 제목: “wait”public final void wait() throws IllegalMonitorStateException, InterruptedExceptionThrows:
InterruptedException- 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
wait
섹션 제목: “wait”public final void wait(long ms) throws IllegalMonitorStateException, InterruptedExceptionParameters:
ms- Long타입의 timeout milliseconds 시간.
Throws:
InterruptedException- 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
wait
섹션 제목: “wait”public final void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedExceptionParameters:
ns- Int타입의 timeout nanoseconds 시간.
Throws:
InterruptedException- 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
AromaSoft Corp. Proprietary and Confidential
(C)opyright 2003 AromaSoft Corp. All right reserved. Contact : contact@aromasoft.com