changes to get the tiny class library for ssjava
[IRC.git] / Robust / src / ClassLibrary / SSJava / Object.java
1 public class Object {
2   
3   locdef{  
4     data
5   }
6   
7   public native int hashCode();
8
9   /* DON'T USE THIS METHOD UNLESS NECESSARY */
10   /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
11   public native int getType();
12
13   public String toString() {
14     return "Object"+hashCode();
15   }
16
17   public boolean equals(@LOC("data") Object o) {
18     if (o==this)
19       return true;
20     return false;
21   }
22 }