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

Method contains

src/java/org/apache/poi/util/BinaryTree.java:208–220  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

206 }
207
208 public boolean contains(Object o)
209 {
210 if (!(o instanceof Map.Entry))
211 {
212 return false;
213 }
214 Map.Entry entry = ( Map.Entry ) o;
215 Object key = entry.getKey();
216 Node node = lookup(( Comparable ) entry.getValue(),
217 _VALUE);
218
219 return (node != null) && node.getData(_KEY).equals(key);
220 }
221
222 public boolean remove(Object o)
223 {

Callers

nothing calls this directly

Calls 7

lookupMethod · 0.95
getDataMethod · 0.95
containsKeyMethod · 0.95
containsValueMethod · 0.95
getValueMethod · 0.65
getKeyMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected