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 java.util.function.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 java.lang.IllegalStateException
t
- Item to putjava.lang.IllegalStateException
- when underlying Appendable
fails.