public int fit(int value) {
        if (from.isPresent() && value < from.getAsInt()) return from.getAsInt();
        if (to.isPresent() && value > to.getAsInt()) return to.getAsInt();
        return value;
    }
Returns the given value adjusted minimally to fit within this range.
config-provisioning/src/main/java/com/yahoo/config/provision/IntRange.java