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