Payload - The payload type.public abstract class AbstractCollectionSink<Payload> extends AbstractSink<Payload>
| Constructor and Description |
|---|
AbstractCollectionSink(Nullity nullity,
Collection<Payload> collection)
Creates a new
AbstractCollectionSink. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAdd(Payload payload)
Adds the given payload value to this
Sink. |
Collection<Payload> |
getCollection()
Returns the
Collection of payload values this
AbstractCollectionSink has been created with. |
add, addAll, addAll, equals, getNullity, hashCode, onAdded, toStringpublic AbstractCollectionSink(Nullity nullity, Collection<Payload> collection) throws IllegalArgumentException
AbstractCollectionSink.nullity - The Nullity to be used.collection - The Collection to be used.IllegalArgumentException - If the given Nullity is null or if the
given Collection is null.public final Collection<Payload> getCollection()
Collection of payload values this
AbstractCollectionSink has been created with.Collection of payload values.protected final void doAdd(Payload payload)
AbstractSinkSink.doAdd in class AbstractSink<Payload>payload - The payload to be added, which is guaranteed to be not
null, unless the Nullity of this
Sink is Nullity.ALLOW.Copyright © 2016–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.