public static IntRange of(int from, int to) {
        return new IntRange(OptionalInt.of(from), OptionalInt.of(to));
    }
Returns the given value adjusted minimally to fit within this range.
config-provisioning/src/main/java/com/yahoo/config/provision/IntRange.java