T - Type of accepted items.
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
Consumer instead.@PublicAPI @Beta @Deprecated public interface Sink<T> extends Consumer<T>
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(T t)
Deprecated.
|
void |
put(T t)
Deprecated.
Put new item into this sink.
|
void put(T t) throws IllegalStateException
t - Item to putIllegalStateException - when underlying Appendable fails.