E
- the type of elements returned by the iterator@NotThreadSafe public static final class JoinIterator.Builder<E> extends Object
Modifier and Type | Method and Description |
---|---|
Iterator<E> |
build() |
JoinIterator.Builder<E> |
estimatedSize(int estimatedSize)
Set an estimated size for the number of iterators to join
|
JoinIterator.Builder<E> |
join(Iterator<? extends E> iterator)
Add another iterator.
|
public JoinIterator.Builder<E> estimatedSize(int estimatedSize)
estimatedSize
- the number of iteratorspublic JoinIterator.Builder<E> join(Iterator<? extends E> iterator)
iterator
- the new iteratorCopyright © 2014–2016. All rights reserved.