public class Object
Constructor and Description |
---|
Object() |
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
Class |
getClass()
Returns the runtime class of an object.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
notify()
Wakes up a single thread that is waiting on this object's monitor.
|
void |
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String |
toString()
Returns a string representation of the object.
|
void |
wait()
Causes current thread to wait until another thread invokes the
method or the
method for this object.
|
void |
wait(long timeout)
Causes current thread to wait until either another thread invokes the
method or the
method for this object, or a specified amount of time has elapsed.
|
void |
wait(long timeout,
int nanos)
Causes current thread to wait until another thread invokes the
method or the
method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
|
public boolean equals(Object obj)
public final Class getClass()
public int hashCode()
public final void notify()
public final void notifyAll()
public String toString()
public final void wait() throws InterruptedException
InterruptedException
public final void wait(long timeout) throws InterruptedException
InterruptedException
public final void wait(long timeout, int nanos) throws InterruptedException
InterruptedException
protected Object clone()