Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
@FunctionalInterface
public interface Consumer<T>
Known subtypesStream.Builder
An operation on one value that answers nothing.
Type parameters
<T>- the input type
Methods
public abstract void accept(T t) | Performs this operation on t. |
public default Consumer<T> andThen(Consumer<? super T> after) | This operation followed by after, both given the same value. |
Method details
accept
public abstract void accept(T t)Performs this operation on
t.Parameters
tT- the input
andThen
public default Consumer<T> andThen(Consumer<? super T> after)This operation followed by
after, both given the same value. If this
operation throws, after does not run.Parameters
afterConsumer<? super T>- the operation to run next
Returns
the composed operation