DATATYPE - The callable result type.PARAMTYPE - The parameter type.EXTYPE - Exception type to be thrown@Immutable public class AdapterCallableToCallableWithParam<DATATYPE,PARAMTYPE,EXTYPE extends Exception> extends Object implements IThrowingCallableWithParameter<DATATYPE,PARAMTYPE,EXTYPE>
Callable into an
IThrowingCallableWithParameter.| Constructor and Description |
|---|
AdapterCallableToCallableWithParam(IThrowingCallable<DATATYPE,EXTYPE> aCallable) |
| Modifier and Type | Method and Description |
|---|---|
DATATYPE |
call(PARAMTYPE aParam)
The call back method to be called.
|
IThrowingCallable<DATATYPE,EXTYPE> |
getCallable() |
String |
toString() |
public AdapterCallableToCallableWithParam(@Nonnull IThrowingCallable<DATATYPE,EXTYPE> aCallable)
@Nonnull public IThrowingCallable<DATATYPE,EXTYPE> getCallable()
@Nonnull public DATATYPE call(@Nonnull PARAMTYPE aParam) throws EXTYPE extends Exception
IThrowingCallableWithParametercall in interface IThrowingCallableWithParameter<DATATYPE,PARAMTYPE,EXTYPE extends Exception>aParam - The parameter to be passed in. May be null or non-
null depending on the implementation.null or non- null
depending on the implementation.EXTYPE - in case something goes wrongEXTYPE extends ExceptionCopyright © 2014–2016 Philip Helger. All rights reserved.