Package com.zeroc.Ice

Class ProxyIdentityKey

java.lang.Object
com.zeroc.Ice.ProxyIdentityKey

public class ProxyIdentityKey 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 of the proxy.
See Also:
  • Constructor Details

    • ProxyIdentityKey

      public ProxyIdentityKey(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 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; false, otherwise.
    • getProxy

      public ObjectPrx getProxy()