@FunctionalInterface public interface ShortConsumer extends Consumer<Short>, 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(int t)
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
accept(short t) |
default void |
accept(Short t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Consumer<Short> |
andThen(Consumer<? super Short> after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortConsumer |
andThen(IntConsumer after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortConsumer |
andThen(ShortConsumer after) |
void accept(short t)
@Deprecated default void accept(int t)
accept in interface IntConsumert - the input argument@Deprecated default void accept(Short t)
default ShortConsumer andThen(ShortConsumer after)
@Deprecated default ShortConsumer andThen(IntConsumer after)
IntConsumer 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<Short> andThen(Consumer<? super Short> 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.