Package org.oddjob.state
Class IsAnyState
java.lang.Object
org.oddjob.state.IsAnyState
- All Implemented Interfaces:
Predicate<State>,StateCondition
The
StateConditions that is always
true.
Should this throw an IllegalStateException if the condition is DESTROYED?
- Author:
- rob
-
Constructor Details
-
IsAnyState
public IsAnyState()
-
-
Method Details
-
test
Description copied from interface:StateConditionTests the condition of the state.- Specified by:
testin interfacePredicate<State>- Specified by:
testin interfaceStateCondition- Parameters:
state- The state.- Returns:
- true if the state matches the condition, false otherwise.
-