public interface Task<T>
action(T) routine. In the example below the task performed by all
workers is to append "a":
Task a = new Task() {
public void action( Object one ) { ((StringBuffer)one).append("a"); }
};
| Modifier and Type | Method and Description |
|---|---|
void |
action(T one)
The job to do.
|
void action(T one)
one - the object that will do the jobCopyright © 2016 Egothor. All Rights Reserved.