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

Method computeNext

output/java_guava/1.4.18/Iterators.java:647–656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

645 checkNotNull(retainIfTrue);
646 return new AbstractIterator<T>() {
647 @Override
648 protected T computeNext() {
649 while (unfiltered.hasNext()) {
650 T element = unfiltered.next();
651 if (retainIfTrue.apply(element)) {
652 return element;
653 }
654 }
655 return endOfData();
656 }
657 };
658 }
659

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