1 16 package com.google.gwt.core.client; 17 18 30 public class JavaScriptObject { 31 32 private static native boolean equalsImpl(JavaScriptObject o, 33 JavaScriptObject other) ; 36 37 private static native String toStringImpl(JavaScriptObject o) ; 42 43 47 protected Object hostedModeReference; 48 49 54 protected JavaScriptObject() { 55 }; 56 57 public boolean equals(Object other) { 58 if (!(other instanceof JavaScriptObject)) { 59 return false; 60 } 61 return equalsImpl(this, (JavaScriptObject) other); 62 } 63 64 public int hashCode() { 65 return Impl.getHashCode(this); 66 } 67 68 public String toString() { 69 75 return toStringImpl(this); 76 } 77 } 78 | Popular Tags |