@Mutable public class RepeatingIterator<ELEMENT> extends InfiniteIterator<ELEMENT>
| Modifier | Constructor and Description |
|---|---|
protected |
RepeatingIterator(ELEMENT element) |
| Modifier and Type | Method and Description |
|---|---|
ELEMENT |
next() |
static <ELEMENT> @Nonnull RepeatingIterator<ELEMENT> |
with(ELEMENT element)
Returns a new repeating iterator that repeats the given element infinitely.
|
hasNextremoveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final ELEMENT element
protected RepeatingIterator(@Captured
ELEMENT element)
@Pure @Capturable @Nonnull public static <ELEMENT> @Nonnull RepeatingIterator<ELEMENT> with(@Captured ELEMENT element)
Copyright © 2017. All rights reserved.