org.oddjob.state
Class IsNot

java.lang.Object
  extended by org.oddjob.state.IsNot
All Implemented Interfaces:
StateCondition

public class IsNot
extends Object
implements StateCondition

Negates a StateCondition.

Author:
rob

Constructor Summary
IsNot(StateCondition condition)
           
 
Method Summary
 boolean test(State state)
          Tests the condition of the state.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsNot

public IsNot(StateCondition condition)
Method Detail

test

public boolean test(State state)
Description copied from interface: StateCondition
Tests the condition of the state.

Specified by:
test in interface StateCondition
Parameters:
state - The state.
Returns:
true if the state matches the condition, false otherwise.

toString

public String toString()
Overrides:
toString in class Object