java.lang
Class Object

java.lang.Object

public class Object


ATTENTION:
When compiling Waba programs, you should use the normal Object class, not this one. However, this class shows you all the methods that Waba supports out of Object (a subset of the full collection). Do not use any unsupported methods in your Waba code.


Object is the the base class for all objects.

The number of methods in this class is small since each method added to this class is added to all other classes in the system.

As with all classes in the waba.lang package, you can't reference the Object class using the full specifier of waba.lang.Object. The waba.lang package is implicitly imported. Instead, you should simply access the Object class like this:

 Object obj = (Object)value;
 


Constructor Summary
Object()
           
 
Method Summary
 boolean equals(Object obj)
          WABA FOR NEWTON ONLY Returns true if this object equals the other object.
 int hashCode()
          WABA FOR NEWTON ONLY Returns a hash code value for the object.
 String toString()
          MODIFIED FOR WABA FOR NEWTON Returns the string representation of the object.
 

Constructor Detail

Object

public Object()
Method Detail

equals

public boolean equals(Object obj)
WABA FOR NEWTON ONLY Returns true if this object equals the other object. Serindipdously, the version 1.0 of String already has the correct equals(...) method built in, so we don't need to make one for that.

hashCode

public int hashCode()
WABA FOR NEWTON ONLY Returns a hash code value for the object. The hash code is not guaranteed to remain the same over the life of the object, so don't store it and assume it continues to be valid.

toString

public String toString()
MODIFIED FOR WABA FOR NEWTON Returns the string representation of the object. The standard Waba implementation (not the Waba for Newton implementation) returns "".