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

Method concat

output/java_guava/1.4.19/Iterators.java:484–488  ·  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

482
483
484 public static <T> Iterator<T> concat(Iterator<? extends T> a, Iterator<? extends T> b) {
485 checkNotNull(a);
486 checkNotNull(b);
487 return concat(new ConsumingQueueIterator<Iterator<? extends T>>(a, b));
488 }
489
490 /**
491 * Combines three iterators into a single iterator. The returned iterator

Callers 3

iteratorMethod · 0.95
getSubscribersMethod · 0.95
iteratorMethod · 0.95

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected