Payload - The payload type.public final class EnumerationIterable<Payload> extends Object implements ProtectedIterable<Payload>
EnumerationIterable is a ProtectedIterable that can be
wrapped around a given Provider for Enumerations
and generates Iterators that yield all values from a
produced Enumeration.| Constructor and Description |
|---|
EnumerationIterable(Provider<? extends Enumeration<? extends Payload>> provider)
Creates a new
EnumerationIterable. |
| Modifier and Type | Method and Description |
|---|---|
EnumerationIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic EnumerationIterable(Provider<? extends Enumeration<? extends Payload>> provider) throws IllegalArgumentException
EnumerationIterable.provider - The Provider for Enumerations to
iterate over.IllegalArgumentException - If the given Provider for Enumerations is null.public EnumerationIterator<Payload> iterator()
ProtectedIterableProtectedIterator.iterator in interface Iterable<Payload>iterator in interface ProtectedIterable<Payload>ProtectedIterator.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.