@FunctionalInterface public interface FloatConsumer extends Consumer<Float>, 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.
|
void |
accept(float t) |
default void |
accept(Float t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Consumer<Float> |
andThen(Consumer<? super Float> after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatConsumer |
andThen(DoubleConsumer after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatConsumer |
andThen(FloatConsumer after) |
void accept(float t)
@Deprecated default void accept(double t)
accept in interface DoubleConsumert - the input argument@Deprecated default void accept(Float t)
default FloatConsumer andThen(FloatConsumer after)
@Deprecated default FloatConsumer andThen(DoubleConsumer after)
DoubleConsumer 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<Float> andThen(Consumer<? super Float> 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.