Package org.oddjob.state
Interface StateCondition
- All Known Implementing Classes:
IsAnyState,IsExecutable,IsForceable,IsHardResetable,IsNot,IsSaveable,IsSoftResetable,IsStoppable,StateConditions,StateMatch
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Something that is able to test the condition of a
State.- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests the condition of the state.default booleantest(StateEvent stateEvent) Helper to save type getState all the time.
-
Method Details
-
test
Tests the condition of the state. -
test
Helper to save type getState all the time.- Parameters:
stateEvent- The event.- Returns:
- depends on the event state
-