@Mutable public class CombiningIterator<ELEMENT> extends DoubleIteratorBasedIterator<ELEMENT,ELEMENT,ELEMENT>
secondaryIteratorprimaryIterator| Modifier | Constructor and Description |
|---|---|
protected |
CombiningIterator(@Nonnull Iterator<? extends ELEMENT> primaryIterator,
@Nonnull Iterator<? extends ELEMENT> secondaryIterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
ELEMENT |
next() |
static <ELEMENT> @Nonnull CombiningIterator<ELEMENT> |
with(@Nonnull Iterator<? extends ELEMENT> primaryIterator,
@Nonnull Iterator<? extends ELEMENT> secondaryIterator)
Returns a new combining iterator that iterates first over the elements of the first iterator and then over the elements of the second iterator.
|
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining@Pure @Capturable @Nonnull public static <ELEMENT> @Nonnull CombiningIterator<ELEMENT> with(@Captured @Nonnull @Nonnull Iterator<? extends ELEMENT> primaryIterator, @Captured @Nonnull @Nonnull Iterator<? extends ELEMENT> secondaryIterator)
@Pure public boolean hasNext()
Copyright © 2017. All rights reserved.