Package com.zeroc.Ice

Class ProxyIdentityFacetKey

java.lang.Object
com.zeroc.Ice.ProxyIdentityFacetKey

public class ProxyIdentityFacetKey extends Object
This class wraps a proxy to allow it to be used the key for a hashed collection. The hashCode and equals methods are based on the object identity and the facet of the proxy.
See Also:
  • Constructor Details

    • ProxyIdentityFacetKey

      public ProxyIdentityFacetKey(ObjectPrx proxy)
      Initializes this class with the passed proxy.
      Parameters:
      proxy - The proxy for this instance.
  • Method Details

    • hashCode

      public int hashCode()
      Computes a hash value based on the object identity and the facet of the proxy.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value.
    • equals

      public boolean equals(Object obj)
      Compares this proxy with the passed object for equality.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare this proxy with.
      Returns:
      true if the passed object is a proxy with the same object identity and facet as this proxy; false, otherwise.
    • getProxy

      public ObjectPrx getProxy()
      Returns the proxy stored by this class.
      Returns:
      The proxy stored by this class.