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