方法摘要
protected Object clone() 創(chuàng)建并返回此對(duì)象的一個(gè)副本。
boolean equals(Object obj) 指示某個(gè)其他對(duì)象是否與此對(duì)象“相等”。
protected void finalize() 當(dāng)垃圾回收器確定不存在對(duì)該對(duì)象的更多引用時(shí),由對(duì)象的垃圾回收器調(diào)用此方法。
Class<? extendsObject> getClass() 返回一個(gè)對(duì)象的運(yùn)行時(shí)類(lèi)。
int hashCode() 返回該對(duì)象的哈希碼值。
void notify() 喚醒在此對(duì)象監(jiān)視器上等待的單個(gè)線程。
void notifyAll() 喚醒在此對(duì)象監(jiān)視器上等待的所有線程。
String toString() 返回該對(duì)象的字符串表示。
void wait() 導(dǎo)致當(dāng)前的線程等待,直到其他線程調(diào)用此對(duì)象的 notify() 方法或 notifyAll() 方法。
void wait(long timeout) 導(dǎo)致當(dāng)前的線程等待,直到其他線程調(diào)用此對(duì)象的 notify() 方法或 notifyAll() 方法,或者超過(guò)指定的時(shí)間量。
void wait(long timeout, int nanos) 導(dǎo)致當(dāng)前的線程等待,直到其他線程調(diào)用此對(duì)象的 notify()