public static class FunctionDesc.Rtn1pWrapper<R,T> extends FunctionDesc.CommonMethod<R>
supplierhandlers| 构造器和说明 |
|---|
Rtn1pWrapper(FunctionDesc.Rtn1P<R,T> method) |
| 限定符和类型 | 方法和说明 |
|---|---|
<Ex extends Exception> |
addHandle(Class<Ex> exType,
Consumer<Ex> handle) |
FunctionDesc.Rtn1pWrapper<R,T> |
addHandle(Consumer<Exception> handle) |
R |
call(T param) |
Optional<R> |
getOptional(T param) |
FunctionDesc.Rtn1pWrapper<R,T> |
setDefault(R value) |
FunctionDesc.Rtn1pWrapper<R,T> |
setSupplier(Supplier<R> supplier) |
rHandle, xSetDefault, xSetSupplierxAddHandle, xAddHandle, xHandlepublic Rtn1pWrapper(FunctionDesc.Rtn1P<R,T> method)
public FunctionDesc.Rtn1pWrapper<R,T> addHandle(Consumer<Exception> handle)
public <Ex extends Exception> FunctionDesc.Rtn1pWrapper<R,T> addHandle(Class<Ex> exType, Consumer<Ex> handle)
public FunctionDesc.Rtn1pWrapper<R,T> setDefault(R value)
public FunctionDesc.Rtn1pWrapper<R,T> setSupplier(Supplier<R> supplier)
Copyright © 2021. All rights reserved.