@FunctionalInterface public interface ByteConsumer extends Consumer<Byte>, IntConsumer
Consumer; provides methods to consume a primitive
type both as object and as primitive.Consumer| Modifier and Type | Method and Description |
|---|---|
void |
accept(byte t) |
default void |
accept(Byte t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default void |
accept(int t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteConsumer |
andThen(ByteConsumer after) |
default Consumer<Byte> |
andThen(Consumer<? super Byte> after)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteConsumer |
andThen(IntConsumer after)
Deprecated.
Please use the corresponding type-specific method instead.
|
void accept(byte t)
@Deprecated default void accept(int t)
accept in interface IntConsumert - the input argument@Deprecated default void accept(Byte t)
default ByteConsumer andThen(ByteConsumer after)
@Deprecated default ByteConsumer 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<Byte> andThen(Consumer<? super Byte> 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.