code: public static void checkMinMax(int min, int max) {
      checkMin(min);
      checkMax(max);
      checkArgument(min <= max, "min > max");
    }
docs: Checks that neither {@code min} or {@code max} is negative and {@code min &lt;= max}.