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(net.markenwerk.commons.interfaces.Provider<? extends Enumeration<? extends Payload>> provider)
Creates a new
EnumerationIterable. |
| Modifier and Type | Method and Description |
|---|---|
net.markenwerk.commons.iterators.EnumerationIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic EnumerationIterable(net.markenwerk.commons.interfaces.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 net.markenwerk.commons.iterators.EnumerationIterator<Payload> iterator()
ProtectedIterableProtectedIterator.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.