diff options
author | Sascha Brawer <brawer@dandelis.ch> | 2002-04-30 14:00:32 +0000 |
---|---|---|
committer | Sascha Brawer <brawer@dandelis.ch> | 2002-04-30 14:00:32 +0000 |
commit | 1e6de7c42d576deb97ad1a2bdf8890d579d267cc (patch) | |
tree | 691fa9384d93bf15c2fe1b983333f90d18c027d9 /java/util/AbstractMap.java | |
parent | a73a5bd02f1cf19805854f1012e5f86a83349d3b (diff) | |
download | classpath-1e6de7c42d576deb97ad1a2bdf8890d579d267cc.tar.gz |
equals, hashCode: Docfix to avoid angle brackets in Javadoc
and for pre-formatted code without asterisks.
Diffstat (limited to 'java/util/AbstractMap.java')
-rw-r--r-- | java/util/AbstractMap.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/java/util/AbstractMap.java b/java/util/AbstractMap.java index d392cee81..11c8f5b54 100644 --- a/java/util/AbstractMap.java +++ b/java/util/AbstractMap.java @@ -554,16 +554,16 @@ public abstract class AbstractMap implements Map * Compares the specified object with this entry. Returns true only if * the object is a mapping of identical key and value. In other words, * this must be: - * <pre> - * (o instanceof Map.Entry) && - * (getKey() == null ? ((HashMap) o).getKey() == null - * : getKey().equals(((HashMap) o).getKey())) && - * (getValue() == null ? ((HashMap) o).getValue() == null - * : getValue().equals(((HashMap) o).getValue())) - * </pre> + * +<pre>(o instanceof Map.Entry) && +(getKey() == null ? ((HashMap) o).getKey() == null + : getKey().equals(((HashMap) o).getKey())) && +(getValue() == null ? ((HashMap) o).getValue() == null + : getValue().equals(((HashMap) o).getValue()))</pre> * * @param o the object to compare - * @return true if it is equal + * + * @return <code>true</code> if it is equal */ public final boolean equals(Object o) { @@ -606,10 +606,9 @@ public abstract class AbstractMap implements Map * Returns the hash code of the entry. This is defined as the exclusive-or * of the hashcodes of the key and value (using 0 for null). In other * words, this must be: - * <pre> - * (getKey() == null ? 0 : getKey().hashCode()) ^ - * (getValue() == null ? 0 : getValue().hashCode()) - * </pre> + * +<pre>(getKey() == null ? 0 : getKey().hashCode()) +^ (getValue() == null ? 0 : getValue().hashCode())</pre> * * @return the hash code */ |