com.google.gwt.maps.jsio.client
Class JSOpaque

java.lang.Object
  extended by com.google.gwt.maps.jsio.client.JSOpaque

public class JSOpaque
extends java.lang.Object

Allows by-name references to JavaScript values. This is intended for use with opaque values such as those used in enumeration-like types.


Constructor Summary
JSOpaque(java.lang.String reference)
          Constructor.
 
Method Summary
 boolean equals(JSOpaque o)
          Object identity between JSOpaque instances is based on their reference.
 boolean equals(java.lang.Object o)
          Allows comparisons of the JSOpaque to JavaScriptObjects.
 int hashCode()
           
 boolean identityEquals(JSOpaque o)
          Convenience method for comparing object identity.
 boolean identityEquals(java.lang.Object o)
          Convenience method for comparing object identity.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSOpaque

public JSOpaque(java.lang.String reference)
Constructor.

Parameters:
reference - A named reference to a globally-defined value.
Method Detail

equals

public final boolean equals(JSOpaque o)
Object identity between JSOpaque instances is based on their reference.

Returns:
true if the other JSOpaque has the same reference.

equals

public boolean equals(java.lang.Object o)
Allows comparisons of the JSOpaque to JavaScriptObjects.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

identityEquals

public final boolean identityEquals(JSOpaque o)
Convenience method for comparing object identity.

Returns:
true if the value represented by the JSOpaque shares identity with the value represented by o.

identityEquals

public final boolean identityEquals(java.lang.Object o)
Convenience method for comparing object identity.

Returns:
true if the value represented by the JSOpaque shares identity with o

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object