|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
The root of the Class hierarchy. Every Class in the system has Object as its ultimate parent. Every variable and method defined here is available in every Object.
Class
Constructor Summary | |
Object()
|
Method Summary | |
protected Object |
clone()
Creates a clone of the object. |
boolean |
equals(Object obj)
Compares two Objects for equality. |
protected void |
finalize()
Code to perform when this object is garbage collected. |
Class |
getClass()
Returns the Class of this Object. |
int |
hashCode()
Returns a hashcode for this Object. |
void |
notify()
Notifies a single waiting thread on a change in condition of another thread. |
void |
notifyAll()
Notifies all of the threads waiting for a condition to change. |
String |
toString()
Returns a String that represents the value of this Object. |
void |
wait()
Causes a thread to wait forever until it is notified. |
void |
wait(long timeout)
Causes a thread to wait until it is notified or the specified timeout expires. |
void |
wait(long timeout,
int nanos)
More accurate wait. |
Constructor Detail |
public Object()
Method Detail |
public final Class getClass()
public int hashCode()
Hashtable
public boolean equals(Object obj)
obj
- the Object to compare with
Hashtable
protected Object clone() throws CloneNotSupportedException
OutOfMemoryError
- If there is not enough memory.
CloneNotSupportedException
- Object explicitly does not
want to be cloned, or it does not support the
Cloneable interface.public String toString()
public final void notify()
The method notify() can only be called by the thread that is the owner of the current object's monitor.
IllegalMonitorStateException
- If the current thread
is not the owner of the Object's monitor.wait(long)
,
notifyAll()
public final void notifyAll()
The method notifyAll() can only be called by the thread that is the owner of the current object's monitor.
IllegalMonitorStateException
- If the current thread
is not the owner of the Object's monitor.wait(long)
,
notify()
public final void wait(long timeout) throws InterruptedException
The method wait() can only be called from within a synchronized method.
timeout
- the maximum time to wait in milliseconds
IllegalMonitorStateException
- If the current thread
is not the owner of the Object's monitor.
InterruptedException
- Another thread has interrupted
this thread.public final void wait(long timeout, int nanos) throws InterruptedException
timeout
- the maximum time to wait in milliseconds
IllegalMonitorStateException
- If the current thread
is not the owner of the Object's monitor.
InterruptedException
- Another thread has interrupted
this thread.public final void wait() throws InterruptedException
The method wait() can only be called from within a synchronized method
IllegalMonitorStateException
- If the current thread
is not the owner of the Object's monitor.
InterruptedException
- Another thread has interrupted
this thread.protected void finalize() throws Throwable
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |