@Override
    public String toString() {
        if (isEmpty()) return "[]";
        if (from.equals(to)) return String.valueOf(from.getAsInt());
        return "[" + (from.isPresent() ? from.getAsInt() : "") + ", " + (to.isPresent() ? to.getAsInt() : "") + "]";
    }
Returns the given value adjusted minimally to fit within this range.
config-provisioning/src/main/java/com/yahoo/config/provision/IntRange.java