Compares the specified object with this entry for equality. Returns true if the given object is also a map entry and the two entries represent the same mapping. @param o object to be compared for equality with this map entry. @return true if the specified object is equal to this map
(Object o)
| 2071 | * entry. |
| 2072 | */ |
| 2073 | public boolean equals(Object o) |
| 2074 | { |
| 2075 | if (this == o) |
| 2076 | { |
| 2077 | return true; |
| 2078 | } |
| 2079 | if (!(o instanceof Map.Entry)) |
| 2080 | { |
| 2081 | return false; |
| 2082 | } |
| 2083 | Map.Entry e = ( Map.Entry ) o; |
| 2084 | |
| 2085 | return _data[ _KEY ].equals(e.getKey()) |
| 2086 | && _data[ _VALUE ].equals(e.getValue()); |
| 2087 | } |
| 2088 | |
| 2089 | /** |
| 2090 | * @return the hash code value for this map entry. |