code: private static void verify(final String name, final int type) {
          if ((type < HARD) || (type > WEAK)) {
              throw new IllegalArgumentException(name + " must be HARD, SOFT, WEAK.");
          }
      }
docs: used by constructor