- All Implemented Interfaces:
- public class Duplicate
- extends java.lang.Object
- implements Function
Duplicates either the first or second input to both first and second output.
If both first and second input are filled, it will copy the first input to
the first output and leaves the second input. The next round will copy the
second input if the first input isn't filled.
- Robbert van Dalen
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Result execute(Context context)
- Description copied from interface:
- Generates a Result given a Task's Context. Implementations should not
throw Exceptions, retain Objects or any other resources after the calling
Thread exits this method.
- Specified by:
execute in interface
context - The Context from which the Function get its parameters.
- The Result after execution.