e509356bcfe22dbca424aac26d24b7dce677dfc1
[IRC.git] / Robust / src / ClassLibrary / SSJava / Object.java
1 public class Object {
2   public native int hashCode();
3
4   /* DON'T USE THIS METHOD UNLESS NECESSARY */
5   /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
6   public native int getType();
7
8   public String toString() {
9     return "Object"+hashCode();
10   }
11
12   public boolean equals(Object o) {
13     if (o==this)
14       return true;
15     return false;
16   }
17 }