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 DoubleConsumer

Known subtypesDoubleSummaryStatistics

An operation on one double that answers nothing; the double form of Consumer.

Methods

public abstract void accept(double value)Performs this operation on value.
public default DoubleConsumer andThen(DoubleConsumer after)This operation followed by after, both given the same value.

Method details

accept

public abstract void accept(double value)
Performs this operation on value.

Parameters

value double
the input

andThen

public default DoubleConsumer andThen(DoubleConsumer after)
This operation followed by after, both given the same value. If this operation throws, after does not run.

Parameters

after DoubleConsumer
the operation to run next

Returns

the composed operation