@FunctionalInterface public interface CheckedConsumer<INPUT,THROWABLE extends Throwable>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(INPUT input)
The same as
Consumer.accept(Object)
except that this method is declared with a throws-clause. |
static <INPUT,THROWABLE extends Throwable> |
asCheckedFunction(CheckedConsumer<INPUT,THROWABLE> consumer) |
void accept(INPUT input) throws THROWABLE extends Throwable
Consumer.accept(Object)
except that this method is declared with a throws-clause.static <INPUT,THROWABLE extends Throwable> CheckedFunction<INPUT,Void,THROWABLE> asCheckedFunction(CheckedConsumer<INPUT,THROWABLE> consumer)
CheckedFunction with Void return type.Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.