Payload - The payload typepublic interface Sink<Payload>
Sink is write-only data structure.
A Sink is intended to be used in API interfaces where the publishing
component wants to expose write-only access.
| Modifier and Type | Method and Description |
|---|---|
Sink<Payload> |
add(Payload payload)
Adds the given payload value.
|
Sink<Payload> |
addAll(Iterable<? extends Payload> payloads)
Adds the given payload values.
|
Sink<Payload> |
addAll(Payload... payloads)
Adds the given payload values.
|
boolean |
equals(Object object)
Compares the given object with this
Sink for equality, which must
not reveal any information about the payload values that have been added
so far. |
int |
hashCode()
Returns the hash code of this
Sink, which must not reveal any
information about the payload values that have been added so far. |
String |
toString()
The String [].
|
Sink<Payload> add(Payload payload) throws IllegalArgumentException
payload - The payload value to be added.Sink.IllegalArgumentException - If the given payload value is null and this
Sink doesn't allow a null to be added.Sink<Payload> addAll(Payload... payloads) throws IllegalArgumentException
payloads - The array of payload values to be added.Sink.IllegalArgumentException - If the given array of payload values is null or if
any of the given payload values is null and this
Sink doesn't allow a null to be added.Sink<Payload> addAll(Iterable<? extends Payload> payloads) throws IllegalArgumentException
payloads - The Iterable of payload values to be added.Sink.IllegalArgumentException - If the given Iterable of payload values is
null or if any of the given payload values is
null and this Sink doesn't allow a
null to be added.int hashCode()
Sink, which must not reveal any
information about the payload values that have been added so far.boolean equals(Object object)
Sink for equality, which must
not reveal any information about the payload values that have been added
so far.Copyright © 2016–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.