- All Superinterfaces:
Observer<Boolean>
,StateObserver
,ValueObserver<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
(StateObserver state) Adds a state to this state combinationReturns theConjunction
used when combining the states.void
remove
(StateObserver state) Removes a state from this state combinationMethods inherited from interface is.codion.common.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
Methods inherited from interface is.codion.common.state.StateObserver
isNotNull, isNull, not, nullable
Methods inherited from interface is.codion.common.value.ValueObserver
get, isEqualTo, isNotEqualTo, optional
-
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
-