diff options
author | Michi Henning <michi@zeroc.com> | 2009-06-04 16:19:02 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2009-06-04 16:19:02 +1000 |
commit | 45a3f61401e8c6cccc841fa43a4b35f9f5a444a8 (patch) | |
tree | 2d328e013b11a6e3724256cb471f6827c94b6e7d /java/src/Ice/ProxyIdentityKey.java | |
parent | Fixed BCC compile errors (diff) | |
download | ice-45a3f61401e8c6cccc841fa43a4b35f9f5a444a8.tar.bz2 ice-45a3f61401e8c6cccc841fa43a4b35f9f5a444a8.tar.xz ice-45a3f61401e8c6cccc841fa43a4b35f9f5a444a8.zip |
Lots of javadoc comments.
Diffstat (limited to 'java/src/Ice/ProxyIdentityKey.java')
-rw-r--r-- | java/src/Ice/ProxyIdentityKey.java | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/java/src/Ice/ProxyIdentityKey.java b/java/src/Ice/ProxyIdentityKey.java index 03a29f98eeb..c1f6abc1bcc 100644 --- a/java/src/Ice/ProxyIdentityKey.java +++ b/java/src/Ice/ProxyIdentityKey.java @@ -9,13 +9,22 @@ 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. -// +/** + * This class wraps a proxy to allow it to be used the key for a hashed collection. + * The <code>hashCode</code> and <code>equals</code> methods are based on the object identity + * of the proxy. + * + * @see ProxyIdentityCompare + * @see ProxyIdentityAndFacetCompare + * @see ProxyIdentityFacetKey + **/ public class ProxyIdentityKey { + /** + * Initializes this class with the passed proxy. + * + * @param proxy The proxy for this instance. + **/ public ProxyIdentityKey(Ice.ObjectPrx proxy) { @@ -28,12 +37,24 @@ public class ProxyIdentityKey _hashCode = _identity.hashCode(); } + /** + * Computes a hash value based on the object identity of the proxy. + * + * @return The hash value. + **/ public int hashCode() { return _hashCode; } + /** + * Compares this proxy with the passed object for equality. + * + * @param obj The object to compare this proxy with. + * @return <code>true</code> if the passed object is a proxy with the same object + * identity; <code>false</code>, otherwise. + **/ public boolean equals(java.lang.Object obj) { |