@Mutable public class ZippingIterator<INPUT0,INPUT1> extends DoubleIteratorBasedIterator<Pair<INPUT0,INPUT1>,INPUT0,INPUT1>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
shortest |
secondaryIteratorprimaryIterator| Modifier | Constructor and Description |
|---|---|
protected |
ZippingIterator(@Nonnull Iterator<? extends INPUT0> primaryIterator,
@Nonnull Iterator<? extends INPUT1> secondaryIterator,
boolean shortest) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
@Nonnull Pair<INPUT0,INPUT1> |
next() |
static <INPUT0,INPUT1> |
with(@Nonnull Iterator<? extends INPUT0> primaryIterator,
@Nonnull Iterator<? extends INPUT1> secondaryIterator,
boolean shortest)
Returns a new zipping iterator that iterates over the elements of the given iterators in pairs, extending the shorter or truncating the longer iterator depending on the given flag.
|
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining@Pure @Capturable @Nonnull public static <INPUT0,INPUT1> @Nonnull ZippingIterator<INPUT0,INPUT1> with(@Captured @Nonnull @Nonnull Iterator<? extends INPUT0> primaryIterator, @Captured @Nonnull @Nonnull Iterator<? extends INPUT1> secondaryIterator, boolean shortest)
@Pure public boolean hasNext()
Copyright © 2017. All rights reserved.