Payload - The payload type.public abstract class AbstractSequenceSink<Payload> extends AbstractSink<Payload>
| Constructor and Description |
|---|
AbstractSequenceSink(Nullity nullity,
Sequence<Payload> sequence)
Creates a new
AbstractSequenceSink. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAdd(Payload payload)
Adds the given payload value to this
Sink. |
Sequence<Payload> |
getSequence()
Returns the
Sequence of payload values this
AbstractSequenceSink has been created with. |
add, addAll, addAll, equals, getNullity, hashCode, onAdded, toStringpublic AbstractSequenceSink(Nullity nullity, Sequence<Payload> sequence) throws IllegalArgumentException
AbstractSequenceSink.nullity - The Nullity to be used.sequence - The Sequence to be used.IllegalArgumentException - If the given Nullity is null or if the
given Sequence is null.public final Sequence<Payload> getSequence()
Sequence of payload values this
AbstractSequenceSink has been created with.Sequence 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.