@FunctionalInterface public interface ExceptionIntConsumer
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(int value)
Performs this operation on the given argument.
|
default ExceptionIntConsumer |
andThen(ExceptionIntConsumer after)
Returns a composed
IntConsumer that performs, in sequence, this
operation followed by the after operation. |
default java.util.function.IntConsumer |
toIntConsumer() |
void accept(int value)
throws Exception
value - the input argumentException - Exceptiondefault ExceptionIntConsumer andThen(ExceptionIntConsumer 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.after - the operation to perform after this operationIntConsumer that performs in sequence this
operation followed by the after operationNullPointerException - if after is nulldefault java.util.function.IntConsumer toIntConsumer()
Copyright © 2022. All rights reserved.