Payload - The payload type.public final class EnumerationIterable<Payload> extends Object implements Iterable<Payload>
EnumerationIterable is a Iterable that can be wrapped
around a given Producer for Enumerations and
generates Iterators that yield all values from a produced
Enumeration.
Calling iterator() creates an instance of
EnumerationIterator.
| Constructor and Description |
|---|
EnumerationIterable(Producer<Enumeration<Payload>> producer)
|
| Modifier and Type | Method and Description |
|---|---|
EnumerationIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic EnumerationIterable(Producer<Enumeration<Payload>> producer) throws IllegalArgumentException
producer - The Producer for Enumerations,
around which the new EnumerationIterable will be
wrapped.IllegalArgumentException - If the given Producer for Enumerations is null.public EnumerationIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.