- All Implemented Interfaces:
Work<O>
public final class TransformWork<I,O>
extends Object
implements Work<O>
-
Constructor Summary
Constructors
-
Method Summary
Get the result once the work is done.
boolean
Call the method to do the work.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
process
public boolean process()
Description copied from interface: Work
Call the method to do the work.
The caller can keep calling this method until it returns true (i.e., the work is done).
- Specified by:
process in interface Work<I>
- Returns:
- boolean to indicate if the work has finished.
-
getResult
Description copied from interface: Work
Get the result once the work is done.
- Specified by:
getResult in interface Work<I>