|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
public class Object
The root class of all other classes.
Constructor Summary | |
---|---|
Object()
Constructs an Object. |
Method Summary | |
---|---|
protected Object |
clone()
Returns a clone of this object if this object supports the cloneable interface, otherwise throws a CloneNotSupportedException. |
boolean |
equals(Object o)
Returns true if the specified object is equal to this object. |
Class |
getClass()
Returns the Class object for this object. |
int |
hashCode()
Returns a unique number for this Object. |
void |
notify()
Notifies the next waiting thread. |
void |
notifyAll()
Notifies all waiting threads. |
String |
toString()
Returns a String representation of this object. |
void |
wait()
Suspends the current thread until notify is invoked and this thread is the first thread waiting notification, or notifyAll is called, or the thread is interrupted. |
void |
wait(long milliseconds)
Suspends the current thread until notify is called and this thread is the first thread waiting notification, or notifyAll is called, or the time specified in the timeout expires, or this thread is interrupted. |
Constructor Detail |
---|
public Object()
Method Detail |
---|
protected Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public boolean equals(Object o)
This implementation returns true if the two objects are the same instance.
Subclasses may override this method.
o
- object to compare to this object
public Class getClass()
public int hashCode()
This method may be overridden by subclasses to return a hash code related to the object's data.
public final void notify()
public final void notifyAll()
public String toString()
This implementation returns the class name followed by '@' followed by the hash code.
public final void wait() throws InterruptedException
The calling thread must have synchronized on this object prior to calling this method. This method is equivalent to wait(0).
InterruptedException
public final void wait(long milliseconds) throws InterruptedException
The calling thread must have synchronized on this object prior to calling this method.
milliseconds
- maximum time to wait in milliseconds
InterruptedException
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |