public String doValidate(Number value) {
        long l = value.longValue();
        if (l > max)
            return "Is larger than " + max;
        if (l < min)
            return "Is smaller than " + min;
        return null;
    }