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