RoboJDETM v2.0

java.lang
Class Object

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

Object

public Object()
Constructs an Object.

Method Detail

clone

protected Object clone()
                throws CloneNotSupportedException
Returns a clone of this object if this object supports the cloneable interface, otherwise throws a CloneNotSupportedException.

Returns:
a clone of this object
Throws:
CloneNotSupportedException

equals

public boolean equals(Object o)
Returns true if the specified object is equal to this object.

This implementation returns true if the two objects are the same instance.

Subclasses may override this method.

Parameters:
o - object to compare to this object
Returns:
true if both objects are the same object instance

getClass

public Class getClass()
Returns the Class object for this object.

Returns:
Class object

hashCode

public int hashCode()
Returns a unique number for this Object.

This method may be overridden by subclasses to return a hash code related to the object's data.

Returns:
a hash code

notify

public final void notify()
Notifies the next waiting thread.


notifyAll

public final void notifyAll()
Notifies all waiting threads.


toString

public String toString()
Returns a String representation of this object.

This implementation returns the class name followed by '@' followed by the hash code.

Returns:
string representation of this object

wait

public final void wait()
                throws InterruptedException
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.

The calling thread must have synchronized on this object prior to calling this method. This method is equivalent to wait(0).

Throws:
InterruptedException

wait

public final void wait(long milliseconds)
                throws InterruptedException
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.

The calling thread must have synchronized on this object prior to calling this method.

Parameters:
milliseconds - maximum time to wait in milliseconds
Throws:
InterruptedException

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com