콘텐츠로 이동

Class Object

package java.lang

java.lang.Object

public 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한다.
public Object()
public boolean equals(Object o)

Parameters:

  • obj - 비교할 대상.

Returns:

  • 두 객체가 모두 같은 값을 가지면 참 아니면 거짓.
public final Class getClass()

Returns:

  • java.lang.Class형인 현 객체의 클래스 객체.
public int hashCode()

Returns:

  • 현 객체의 정수형 해쉬코드.
public final void notify()
  • 현 객체에 대해 wait하고 있는 쓰레드들 중 하나를 깨운다.
public final void notifyAll()
  • 현 객체에 대해 wait하고 있는 쓰레드를 모두 깨운다.
public String toString()

Returns:

  • 현 객체를 나타내는 문자열.
public final void wait()
throws IllegalMonitorStateException,
InterruptedException

Throws:

  • InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
public final void wait(long ms)
throws IllegalMonitorStateException,
InterruptedException

Parameters:

  • ms - Long타입의 timeout milliseconds 시간.

Throws:

  • InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
public final void wait(long ms,
int ns)
throws IllegalMonitorStateException,
InterruptedException

Parameters:

  • ns - Int타입의 timeout nanoseconds 시간.

Throws:

  • InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.## 메서드 상세
public boolean equals(Object o)

Parameters:

  • obj - 비교할 대상.

Returns:

  • 두 객체가 모두 같은 값을 가지면 참 아니면 거짓.
public final Class getClass()

Returns:

  • java.lang.Class형인 현 객체의 클래스 객체.
public int hashCode()

Returns:

  • 현 객체의 정수형 해쉬코드.
public final void notify()
  • 현 객체에 대해 wait하고 있는 쓰레드들 중 하나를 깨운다.
public final void notifyAll()
  • 현 객체에 대해 wait하고 있는 쓰레드를 모두 깨운다.
public String toString()

Returns:

  • 현 객체를 나타내는 문자열.
public final void wait()
throws IllegalMonitorStateException,
InterruptedException

Throws:

  • InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
public final void wait(long ms)
throws IllegalMonitorStateException,
InterruptedException

Parameters:

  • ms - Long타입의 timeout milliseconds 시간.

Throws:

  • InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.
public final void wait(long ms,
int ns)
throws IllegalMonitorStateException,
InterruptedException

Parameters:

  • ns - Int타입의 timeout nanoseconds 시간.

Throws:

  • InterruptedException - 다른 쓰레드가 현 쓰레드를 interrupt했을 때 발생.

AromaSoft Corp. Proprietary and Confidential

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