org.oddjob.state
Class IsAnyState
java.lang.Object
org.oddjob.state.IsAnyState
- All Implemented Interfaces:
- StateCondition
public class IsAnyState
- extends Object
- implements StateCondition
The StateCondition
s that is always
true.
Should this throw an IllegalStateException if
the condition is DESTROYED?
- Author:
- rob
Method Summary |
boolean |
test(State state)
Tests the condition of the state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsAnyState
public IsAnyState()
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.