MCPcopy Create free account
hub / github.com/davidgiven/luje / contains

Method contains

lib/java/util/HashMap.java:234–242  ·  view source on GitHub ↗
(Object object)

Source from the content-addressed store, hash-verified

232 }
233
234 @Override
235 public boolean contains(Object object) {
236 if (object instanceof Map.Entry) {
237 Map.Entry<?, ?> oEntry = (Map.Entry<?, ?>) object;
238 Entry<KT, VT> entry = associatedMap.getEntry(oEntry.getKey());
239 return valuesEq(entry, oEntry);
240 }
241 return false;
242 }
243
244 private static boolean valuesEq(Entry entry, Map.Entry<?, ?> oEntry) {
245 return (entry != null) &&

Callers

nothing calls this directly

Calls 3

valuesEqMethod · 0.95
getKeyMethod · 0.65
getEntryMethod · 0.45

Tested by

no test coverage detected