public class DelegatingTask extends Object implements Task
| Constructor and Description |
|---|
DelegatingTask()
Creates new instance with "doing nothing" initial behaviour
|
DelegatingTask(Task task) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
runs #close method of current behaviour, @see Task#close
|
void |
run()
runs #run method of current behaviour, @see Task#run
|
void |
set(Task task)
Changes current behaviour to new passed as a parameter
|
void |
stop()
runs #stop method of current behaviour, @see Task#stop
|
public DelegatingTask(Task task)
task - initial behaviour of new instancepublic DelegatingTask()
Tasks.doNothing()public void set(Task task)
task - new behaviourpublic void stop()
public void run()
Copyright © 2013. All Rights Reserved.