diff options
Diffstat (limited to 'javae/src/Ice/ProxyIdentityKey.java')
-rw-r--r-- | javae/src/Ice/ProxyIdentityKey.java | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/javae/src/Ice/ProxyIdentityKey.java b/javae/src/Ice/ProxyIdentityKey.java deleted file mode 100644 index 92a39532a18..00000000000 --- a/javae/src/Ice/ProxyIdentityKey.java +++ /dev/null @@ -1,53 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. -// -// This copy of Ice-E is licensed to you under the terms described in the -// ICEE_LICENSE file included in this distribution. -// -// ********************************************************************** - -package Ice; - -// -// This class wraps a proxy and supplies the necessary methods to allow -// it to be used as a key in a hashed collection. Only the proxy's -// identity is used in comparisons. -// -public class ProxyIdentityKey -{ - public - ProxyIdentityKey(Ice.ObjectPrx proxy) - { - _proxy = proxy; - - // - // Cache the identity and its hash code. - // - _identity = proxy.ice_getIdentity(); - _hashCode = _identity.hashCode(); - } - - public int - hashCode() - { - return _hashCode; - } - - public boolean - equals(java.lang.Object obj) - { - ProxyIdentityKey other = (ProxyIdentityKey)obj; - return (_hashCode == other._hashCode) && _identity.equals(other._identity); - } - - public Ice.ObjectPrx - getProxy() - { - return _proxy; - } - - final private Ice.ObjectPrx _proxy; - final private Ice.Identity _identity; - final private int _hashCode; -} |