LAZY_DATA - type of lazy task's resultpublic class DefaultLazyTask<LAZY_DATA> extends Object implements LazyTask
If the order is reversed, an exception will be thrown.
| Constructor and Description |
|---|
DefaultLazyTask(Supplier<LAZY_DATA> dataSupplier,
Consumer<LazyTaskResult<LAZY_DATA>> dataConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeOnDone()
Executes callback.
|
void |
executeTask()
Method for executing task.
|
public DefaultLazyTask(Supplier<LAZY_DATA> dataSupplier, Consumer<LazyTaskResult<LAZY_DATA>> dataConsumer)
public void executeTask()
LazyTaskexecuteTask in interface LazyTaskpublic void executeOnDone()
LazyTaskexecuteOnDone in interface LazyTaskCopyright © 2018. All rights reserved.