@Mutable public class CyclingIterator<ELEMENT> extends ReadOnlyIterator<ELEMENT>
| Modifier and Type | Field and Description |
|---|---|
protected @Nonnull FiniteIterable<? extends ELEMENT> |
iterable |
| Modifier | Constructor and Description |
|---|---|
protected |
CyclingIterator(@Nonnull FiniteIterable<? extends ELEMENT> iterable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
ELEMENT |
next() |
static <ELEMENT> @Nonnull CyclingIterator<ELEMENT> |
with(@Nonnull FiniteIterable<? extends ELEMENT> iterable)
Returns a new cycling iterator that iterates over the elements of the given iterable indefinitely.
|
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining@Nonnull protected final @Nonnull FiniteIterable<? extends ELEMENT> iterable
protected CyclingIterator(@Nonnull @Nonnull FiniteIterable<? extends ELEMENT> iterable)
@Pure @Capturable @Nonnull public static <ELEMENT> @Nonnull CyclingIterator<ELEMENT> with(@Nonnull @Nonnull FiniteIterable<? extends ELEMENT> iterable)
@Pure public boolean hasNext()
Copyright © 2017. All rights reserved.