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

Method containsAll

lib/java/util/AbstractCollection.java:165–173  ·  view source on GitHub ↗

Tests whether this Collection contains all objects contained in the specified Collection. This implementation iterates over the specified Collection. If one element returned by the iterator is not contained in this Collection, then false is returned; {@code tr

(Collection<?> collection)

Source from the content-addressed store, hash-verified

163 * if {@code collection} is {@code null}.
164 */
165 public boolean containsAll(Collection<?> collection) {
166 Iterator<?> it = collection.iterator();
167 while (it.hasNext()) {
168 if (!contains(it.next())) {
169 return false;
170 }
171 }
172 return true;
173 }
174
175 /**
176 * Returns if this {@code Collection} contains no elements. This implementation

Callers

nothing calls this directly

Calls 4

containsMethod · 0.95
iteratorMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected