Payload - The payload type.public final class ProtectingIterable<Payload> extends Object implements ProtectedIterable<Payload>
ProtectingIterable is a ProtectedIterable that can be
wrapped around a given Iterable and generates that every call to
iterator() yields a ProtectedIterator.| Constructor and Description |
|---|
ProtectingIterable(Iterable<Payload> iterable)
Creates a new
ProtectingIterable. |
| Modifier and Type | Method and Description |
|---|---|
ProtectingIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ProtectingIterable(Iterable<Payload> iterable) throws IllegalArgumentException
ProtectingIterable.iterable - The Iterable to iterate over.IllegalArgumentException - If the given Iterable is null.public ProtectingIterator<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.