public NumberValidator(String str) {
        String[] parts = str.split(",");
        if (parts.length > 0)
            min = Long.parseLong(parts[0]);
        if (parts.length > 1)
            max = Long.parseLong(parts[1]);
    }