Payload - The payload type.public final class InfiniteIterator<Payload> extends AbstractProtectedIterator<Payload>
InfiniteIterator is an AbstractProtectedIterator that
infinitely iterates, using a Provider, tom provide further elements.| Constructor and Description |
|---|
InfiniteIterator(Provider<? extends Payload> provider)
Creates a new
InfiniteIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next()
Returns an element provided by the
Provider. |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic InfiniteIterator(Provider<? extends Payload> provider) throws IllegalArgumentException
InfiniteIterator.provider - The Provider to be used.IllegalArgumentException - If the given Provider is null.public boolean hasNext()
public Payload next() throws ProvisioningException
Provider.ProvisioningException - If the Provider failed to provide an element.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.