Home | History | Annotate | Download | only in util

Lines Matching refs:Input

25  * Enables thread-safe multiplexing of multiple input boolean states into a
29 public class ListenerCombiner<Input extends Enum<Input>> {
39 * @param state the conjunction of all input values.
46 /** Stores the current input state. */
47 private final EnumMap<Input, Boolean> mInputs;
72 * Updates the state of the given input, dispatching to all output change
75 * @param index the index of the input to change.
76 * @param newValue the new value of the input.
79 public boolean setInput(Input input, boolean newValue) {
81 mInputs.put(input, newValue);
83 // If the new input value is the same as the existing output,
106 public ListenerCombiner(Class<Input> clazz, StateChangeListener listener) {
111 public ListenerCombiner(Class<Input> clazz) {
112 mInputs = new EnumMap<Input, Boolean>(clazz);
114 for (Input i : clazz.getEnumConstants()) {