Interface State.Combination

All Superinterfaces:
Observer<Boolean>, StateObserver, ValueObserver<Boolean>
Enclosing interface:
State

public static interface State.Combination extends StateObserver
A state which combines a number of states, either ANDing or ORing those together when determining its own state.
  • Method Details

    • conjunction

      Conjunction conjunction()
      Returns the Conjunction used when combining the states.
      Returns:
      the conjunction of this state combination
    • add

      void add(StateObserver state)
      Adds a state to this state combination
      Parameters:
      state - the state to add to this state combination
    • remove

      void remove(StateObserver state)
      Removes a state from this state combination
      Parameters:
      state - the state to remove from this state combination