Class Object


  extended by Object
Direct Known Subclasses:
Animation, Buffer, ByteArray, Calendar, Channel, Component, Config, Font, Graphics, Image, InputStream, IntArray, List, Map, Member, Menu, OutputStream, Player, Prompt, Store, String, Style, Timer, TimeZone, Value

public class Object

Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects implement the methods of this class.


Constructor Summary
Object()
          Constructs a new Object instance.
 
Method Summary
 String toString()
          Returns a string representation of the object.
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 
Methods inherited from
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Object

public Object()
Constructs a new Object instance.

Method Detail

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.


hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by Map.

Overrides:
hashCode in class
Returns:
a hash code value for this object.
See Also:
equals(Object), Map

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Map