MCPcopy Create free account
hub / github.com/ReadyTalk/avian / containsValue

Method containsValue

classpath/java/util/HashMap.java:147–159  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

145 }
146
147 public boolean containsValue(Object value) {
148 if (array != null) {
149 for (int i = 0; i < array.length; ++i) {
150 for (Cell<K, V> c = array[i]; c != null; c = c.next()) {
151 if (helper.equal(value, c.getValue())) {
152 return true;
153 }
154 }
155 }
156 }
157
158 return false;
159 }
160
161 public V get(Object key) {
162 Cell<K, V> c = find(key);

Callers

nothing calls this directly

Calls 3

nextMethod · 0.65
equalMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected