2 public int cachedCode; //first field has to be a primitive
3 public boolean cachedHash;
4 public Object nextobject; /* Oid */
5 public Object localcopy;
7 public native int nativehashCode();
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 String.valueOf(this);
25 public boolean equals(Object o) {