org.apache.tapestry5.func
Class Worker<T>

java.lang.Object
  extended by org.apache.tapestry5.func.Worker<T>

public abstract class Worker<T>
extends java.lang.Object

An operational function used with a Flow.

Since:
5.2.0
See Also:
Flow.each(Worker)

Constructor Summary
Worker()
           
 
Method Summary
 Worker<T> combine(Worker<? super T> other)
          Combines this worker with the other worker, forming a new composite worker.
abstract  void work(T value)
          Perform the operation on some object of type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Worker

public Worker()
Method Detail

work

public abstract void work(T value)
Perform the operation on some object of type T.


combine

public Worker<T> combine(Worker<? super T> other)
Combines this worker with the other worker, forming a new composite worker. In the composite, the value from the Flow is passed first to this worker, then to the other worker.



Copyright © 2010-2011 Apache Software Foundation. All Rights Reserved.