@FunctionalInterface public interface IntConsumer extends Consumer<Integer>, IntConsumer
Consumer; provides methods to consume a primitive
type both as object and as primitive.Consumer| Modifier and Type | Method and Description |
|---|---|
default void |
accept(Integer t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Consumer<Integer> |
andThen(Consumer<? super Integer> after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default IntConsumer |
andThen(IntConsumer after)
Returns a composed
IntConsumer that performs, in sequence, this
operation followed by the after operation. |
accept@Deprecated default void accept(Integer t)
default IntConsumer andThen(IntConsumer after)
java.util.function.IntConsumerIntConsumer 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 IntConsumerafter - the operation to perform after this operationIntConsumer that performs in sequence this
operation followed by the after operation@Deprecated default Consumer<Integer> andThen(Consumer<? super Integer> 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.