- All Superinterfaces:
ObservableState
,Observer<Boolean>
- Enclosing interface:
State
A state which combines a number of states, either ANDing or ORing those together
when determining its own state.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ObservableState state) Adds a state to this state combinationReturns theConjunction
used when combining the states.void
remove
(ObservableState state) Removes a state from this state combinationMethods inherited from interface is.codion.common.state.ObservableState
addConsumer, addListener, addWeakConsumer, addWeakListener, is, not, observer, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
conjunction
Conjunction conjunction()Returns theConjunction
used when combining the states.- Returns:
- the conjunction of this state combination
-
add
Adds a state to this state combination- Parameters:
state
- the state to add to this state combination
-
remove
Removes a state from this state combination- Parameters:
state
- the state to remove from this state combination
-