DATATYPE - The callable result type.@Immutable @Deprecated public class AdapterRunnableToCallable<DATATYPE> extends Object implements INonThrowingCallable<DATATYPE>
Runnable into an
INonThrowingCallable.| Constructor and Description |
|---|
AdapterRunnableToCallable(Runnable aRunnable)
Deprecated.
|
AdapterRunnableToCallable(Runnable aRunnable,
DATATYPE aResult)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DATATYPE |
call()
Deprecated.
The call back method to be called.
|
static AdapterRunnableToCallable<Object> |
createAdapter(Runnable aRunnable)
Deprecated.
Create a callable that always returns
null. |
static <DATATYPE> AdapterRunnableToCallable<DATATYPE> |
createAdapter(Runnable aRunnable,
DATATYPE aResult)
Deprecated.
Create a callable that always returns the passed value.
|
DATATYPE |
getResult()
Deprecated.
|
Runnable |
getRunnable()
Deprecated.
|
String |
toString()
Deprecated.
|
@Nullable public DATATYPE call()
INonThrowingCallablecall in interface INonThrowingCallable<DATATYPE>call in interface IThrowingCallable<DATATYPE,Exception>null or non- null
depending on the implementation.@Nonnull public static AdapterRunnableToCallable<Object> createAdapter(@Nonnull Runnable aRunnable)
null.aRunnable - The runnable to be executed.AdapterRunnableToCallable object.@Nonnull public static <DATATYPE> AdapterRunnableToCallable<DATATYPE> createAdapter(@Nonnull Runnable aRunnable, @Nullable DATATYPE aResult)
DATATYPE - The callable result type.aRunnable - The runnable to be executed.aResult - The expected result from calling INonThrowingCallable.call()
. May be null.AdapterRunnableToCallable object.Copyright © 2014–2016 Philip Helger. All rights reserved.