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

Method contains

lib/java/util/TreeMap.java:840–852  ·  view source on GitHub ↗
(Object object)

Source from the content-addressed store, hash-verified

838 }
839
840 @SuppressWarnings("unchecked")
841 @Override
842 public boolean contains(Object object) {
843 if (object instanceof Map.Entry) {
844 Map.Entry<K, V> entry = (Map.Entry<K, V>) object;
845 K key = entry.getKey();
846 if (subMap.isInRange(key)) {
847 V v1 = subMap.get(key), v2 = entry.getValue();
848 return v1 == null ? ( v2 == null && subMap.containsKey(key) ) : v1.equals(v2);
849 }
850 }
851 return false;
852 }
853
854 @Override
855 public boolean remove(Object object) {

Callers 1

removeMethod · 0.95

Calls 6

isInRangeMethod · 0.80
getKeyMethod · 0.65
getMethod · 0.65
getValueMethod · 0.65
containsKeyMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected