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 BiConsumer<T, U>

An operation on two values that answers nothing.

Type parameters

<T>
the first input type
<U>
the second input type

Methods

public abstract void accept(T t, U u)Performs this operation.
public default BiConsumer<T, U> andThen(BiConsumer<? super T, ? super U> after)This operation followed by after, both given the same values.

Method details

accept

public abstract void accept(T t, U u)
Performs this operation.

Parameters

t T
the first input
u U
the second input

andThen

public default BiConsumer<T, U> andThen(BiConsumer<? super T, ? super U> after)
This operation followed by after, both given the same values. If this operation throws, after does not run.

Parameters

after BiConsumer<? super T, ? super U>
the operation to run next

Returns

the composed operation