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

Method contains

classpath/java/util/ArrayDeque.java:232–247  ·  view source on GitHub ↗
(Object element)

Source from the content-addressed store, hash-verified

230 }
231
232 @Override
233 public boolean contains(Object element) {
234 Iterator<T> it = iterator();
235 while (it.hasNext()) {
236 T next = it.next();
237 if (next == null) {
238 if (element == null) {
239 return true;
240 }
241 } else if (next.equals(element)) {
242 return true;
243 }
244 }
245
246 return false;
247 }
248
249 @Override
250 public boolean containsAll(Collection<?> c) {

Callers 1

containsAllMethod · 0.95

Calls 4

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

Tested by

no test coverage detected