MCPcopy Create free account
hub / github.com/antlr/codebuff / computeNext

Method computeNext

corpus/java/training/guava/collect/Iterators.java:616–625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

614 checkNotNull(retainIfTrue);
615 return new AbstractIterator<T>() {
616 @Override
617 protected T computeNext() {
618 while (unfiltered.hasNext()) {
619 T element = unfiltered.next();
620 if (retainIfTrue.apply(element)) {
621 return element;
622 }
623 }
624 return endOfData();
625 }
626 };
627 }
628

Callers

nothing calls this directly

Calls 4

nextMethod · 0.65
applyMethod · 0.65
hasNextMethod · 0.45
endOfDataMethod · 0.45

Tested by

no test coverage detected