code: protected boolean containsFlag(final char flag, final String flags) {
          if (flags == null) return false;
          return flags.indexOf(flag) >= 0;
      }
docs: Returns whether {@code flags} contains {@code flag}.
  @param flag
  @param flags
  @return whether {@code flags} contains {@code flag}.