private ValidationResult    validateParameterFirstSecondValues(Map<String,String> properties) {
        // check that first is an int
        String firstValue = properties.get(PARAMETER_NAME_FIRST_VALUE);
        int firstIntValue = -1;
        try {
            firstIntValue = checkInteger(firstValue);
        } catch (NumberFormatException nfe) {
            return  new MyValidationResult(false, "Must be an integer");
        }
        
        // check that second is an int
        String secondValue = properties.get(PARAMETER_NAME_SECOND_VALUE);
        int secondIntValue = -1;
        try {
            secondIntValue = checkInteger(secondValue);
        } catch (NumberFormatException nfe) {
            return  new MyValidationResult(false, "Must be an integer");
        }

        // check that second >= first
        if (secondIntValue < firstIntValue)
            return  new MyValidationResult(false, "Second value must be greater or equal to first");
        
        return  ValidationResult.SUCCESS;
    }
Validates the parameter First and Second values.

@param   properties      the view instance parameters
@return  the validation result
ambari-views/examples/property-validator-view/src/main/java/org/apache/ambari/view/property/MyValidator.java