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

Method concat

corpus/java/training/guava/collect/Iterators.java:463–467  ·  view source on GitHub ↗

Combines two iterators into a single iterator. The returned iterator iterates across the elements in a, followed by the elements in b. The source iterators are not polled until necessary. The returned iterator supports remove() when the corresponding input iterator suppor

(Iterator<? extends T> a, Iterator<? extends T> b)

Source from the content-addressed store, hash-verified

461 * input iterator supports it.
462 */
463 public static <T> Iterator<T> concat(Iterator<? extends T> a, Iterator<? extends T> b) {
464 checkNotNull(a);
465 checkNotNull(b);
466 return concat(new ConsumingQueueIterator<Iterator<? extends T>>(a, b));
467 }
468
469 /**
470 * Combines three iterators into a single iterator. The returned iterator

Callers 3

iteratorMethod · 0.95
iteratorMethod · 0.95
getSubscribersMethod · 0.95

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected