MCPcopy Create free account
hub / github.com/apache/poi / equals

Method equals

src/java/org/apache/poi/util/BinaryTree.java:2073–2087  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

containsMethod · 0.45
removeMethod · 0.45

Calls 2

getValueMethod · 0.65
getKeyMethod · 0.45

Tested by

no test coverage detected