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