@FunctionalInterface public interface DoubleConsumer extends Consumer<Double>, DoubleConsumer
Consumer; provides methods to consume a primitive
type both as object and as primitive.Consumer| Modifier and Type | Method and Description |
|---|---|
default void |
accept(Double t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Consumer<Double> |
andThen(Consumer<? super Double> after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleConsumer |
andThen(DoubleConsumer after)
Returns a composed
DoubleConsumer that performs, in sequence, this
operation followed by the after operation. |
accept@Deprecated default void accept(Double t)
default DoubleConsumer andThen(DoubleConsumer after)
java.util.function.DoubleConsumerDoubleConsumer that performs, in sequence, this
operation followed by the after operation. If performing either
operation throws an exception, it is relayed to the caller of the
composed operation. If performing this operation throws an exception,
the after operation will not be performed.andThen in interface DoubleConsumerafter - the operation to perform after this operationDoubleConsumer that performs in sequence this
operation followed by the after operation@Deprecated default Consumer<Double> andThen(Consumer<? super Double> after)
Consumer that performs, in sequence, this
operation followed by the after operation. If performing either
operation throws an exception, it is relayed to the caller of the
composed operation. If performing this operation throws an exception,
the after operation will not be performed.