java.lang.Object

Objectクラスはクラス階層のルートであり、すべてのクラスのスーパークラスである。

コンストラクタ

Objectオブジェクトを生成する。

Object()

clone

オブジェクトのコピーを生成して返す。

protected Object clone() throws CloneNotSupportedException

equals

オブジェクトが等しいかどうかを返す。

public boolean equals(Object obj)
obj
比較対象の参照オブジェクト

finalize

ガベージコレクタに呼び出されるメソッド。

protected void finalize() throws Throwable

getClass

実行時クラスを返す。

public final Class<?> getClass()

hashCode

ハッシュコード値を返す。

public int hashCode()

notify

モニタで待機中のスレッドをひとつ再開する。

public final void notify()

notifyAll

モニタで待機中のすべてのスレッドを再開する。

public final void notifyAll()

toString

オブジェクトの文字列表現を返す。

public String toString()

wait

notifyメソッド又はnofityAllメソッドが呼び出されるまで現在のスレッドを待機させる。

public final void wait(long timeout) throws InterruptedException
public final void wait(long timeout, int nanos) throws InterruptedException
public final void wait() throws InterruptedException
timeout
ミリ秒単位の最大待機時間
nanos
追加の待ち時間(ナノ秒単位で0から999999の範囲)