code: int flags(int id) {
      int result = 0;
      if (isPersisted(id)) result |= Settings.PERSISTED;
      if (persistValue(id)) result |= Settings.PERSIST_VALUE;
      return result;
    }
docs: Returns the flags for the setting {@code id}, or 0 if unset.