2 public native int nativehashCode();
3 private int cachedCode; //first field has to be a primitive
4 private boolean cachedHash;
6 /* DO NOT USE ANY OF THESE - THEY ARE FOR IMPLEMENTING TAGS */
9 public int hashCode() {
11 cachedCode=nativehashCode();
17 /* DON'T USE THIS METHOD UNLESS NECESSARY */
18 /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
19 public native int getType();
21 public String toString() {
22 return "Object"+hashCode();
25 public boolean equals(Object o) {