org.oddjob.state
Class AssertNonDestroyed

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

public class AssertNonDestroyed
extends Object
implements StateOperator

A StateOperator that ensures non of the operands are destroyed.

Author:
rob

Constructor Summary
AssertNonDestroyed()
           
 
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

AssertNonDestroyed

public AssertNonDestroyed()
Method Detail

evaluate

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

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