org.oddjob.state
Class WorstStateOp

java.lang.Object
  extended by org.oddjob.state.WorstStateOp
All Implemented Interfaces:
StateOperator

public class WorstStateOp
extends Object
implements StateOperator

Implementation of a StateOperator that provides the worst of any given states. This Operator is used in many Structural jobs to calculate parent state.

Author:
rob

Constructor Summary
WorstStateOp()
           
 
Method Summary
 ParentState evaluate(State... states)
          Evaluate the given states.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorstStateOp

public WorstStateOp()
Method Detail

evaluate

public ParentState evaluate(State... states)
Description copied from interface: StateOperator
Evaluate the given states.

Specified by:
evaluate in interface StateOperator
Parameters:
states - The states.
Returns:
The result state.