MCPcopy Index your code
hub / github.com/davidgiven/luje / containsValue

Method containsValue

lib/java/util/TreeMap.java:476–493  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

474 }
475
476 @Override
477 public boolean containsValue(Object value) {
478 Iterator<V> it = values().iterator();
479 if (value != null) {
480 while (it.hasNext()) {
481 if (value.equals(it.next())) {
482 return true;
483 }
484 }
485 } else {
486 while (it.hasNext()) {
487 if (it.next() == null) {
488 return true;
489 }
490 }
491 }
492 return false;
493 }
494
495 @Override
496 public Set<Map.Entry<K, V>> entrySet() {

Callers

nothing calls this directly

Calls 5

valuesMethod · 0.95
iteratorMethod · 0.65
hasNextMethod · 0.65
equalsMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected