public class Object
Constructor and Description |
---|
Object() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aOther) |
Class<?> |
getClass()
Returns the runtime Class of this Object.
|
int |
hashCode() |
void |
notify()
Wake up one thread blocked on a wait().
|
void |
notifyAll()
Wake up all threads blocked on a wait().
|
String |
toString() |
void |
wait()
This is the same as calling wait(0).
|
void |
wait(long timeout)
Wait until notified.
|
void |
wait(long timeout,
int nanos)
Wait until notified.
|
public boolean equals(Object aOther)
public final Class<?> getClass()
public int hashCode()
public final void notify()
If multiple threads are waiting, higher priority threads will be woken in preference, otherwise the thread that gets woken is essentially random.
public final void notifyAll()
public String toString()
public final void wait() throws InterruptedException
InterruptedException
public final void wait(long timeout) throws InterruptedException
timeout
- maximum time in milliseconds to wait. Zero means forever.InterruptedException
public final void wait(long timeout, int nanos) throws InterruptedException
timeout
- nanos
- InterruptedException