Payload - The payload type.public final class CollectionSource<Payload> extends AbstractSource<Payload>
| Constructor and Description |
|---|
CollectionSource(Collection<Payload> collection)
Creates a new
CollectionSource. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Payload> |
getCollection()
Returns the
Collection of payload values this
CollectionSource has been created with. |
ProtectedIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
int |
size()
Returns the number of payload values of this
Source. |
contains, containsAll, containsAll, containsMatch, createPredicate, doGetFirst, firstIndexOf, getAll, getAllMatches, getFirst, getFirst, getFirstMatch, isEmpty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic CollectionSource(Collection<Payload> collection) throws IllegalArgumentException
CollectionSource.collection - The collection of payload values to be used.IllegalArgumentException - If the given collection of payload values is null.public Collection<Payload> getCollection()
Collection of payload values this
CollectionSource has been created with.Collection of payload values.public int size()
SourceSource.Source.public ProtectedIterator<Payload> iterator()
ProtectedIterableProtectedIterator.ProtectedIterator.Copyright © 2016–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.