- All Superinterfaces:
Observable<Boolean>
,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.observable.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, getOrThrow, isEqualTo, isNotEqualTo, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
Methods inherited from interface is.codion.common.state.ObservableState
get, isNull, isNullable, not
-
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
-