private void updateListeners(final int state) {
    switch (state) {
      case LEFT: {
        for (RotaryEncoderListener listener : listeners) {
          listener.previous();
        }
        break;
      }
      case RIGHT: {
        for (RotaryEncoderListener listener : listeners) {
          listener.next();
        }
        break;
      }
      case PUSH: {
        for (RotaryEncoderListener listener : listeners) {
          listener.push();
        }
        break;
      }
      case LONG_PUSH: {
        for (RotaryEncoderListener listener : listeners) {
          listener.longPush();
        }
        break;
      }
    }
  }