mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ArgumentValidatorUtil.java
public static ValidationEnum checkLong(final Long value, final String minValue, final String maxValue)
    {
        if (minValue != null && value < Long.parseLong(minValue))
        {
            return ValidationEnum.LESS_THAN_MIN;
        }
        if (maxValue != null && value > Long.parseLong(maxValue))
        {
            return ValidationEnum.GREATER_THAN_MAX;
        }
        return ValidationEnum.PASSED;
    }
/**
     * Method used to check if the value is a valid long.
     * 
     * @param value
     *          String value to be checked.
     * @param minValue
     *          String that represents the minimum long the value being checked can be set to.
     * @param maxValue
     *          String that represents the maximum long the value being checked can be set to.
     * @return
     *          Enumeration which represents whether or not the value is valid and for what reason if it is not a valid
     *          value.
     */
Method used to check if the value is a valid long.

@param value
String value to be checked.
@param minValue
String that represents the minimum long the value being checked can be set to.
@param maxValue
String that represents the maximum long the value being checked can be set to.
@return
Enumeration which represents whether or not the value is valid and for what reason if it is not a valid
value.
Method used to check if the value is a valid long . @param value String value to be checked . @param minValue String that represents the minimum long the value being checked can be set to . @param maxValue String that represents the maximum long the value being checked can be set to . @return Enumeration which represents whether or not the value is valid and for what reason if it is not a valid value .
public static ValidationEnum checkLong(final Long value, final String minValue, final String maxValue)
    {
        if (minValue != null && value < Long.parseLong(minValue))
        {
            return ValidationEnum.LESS_THAN_MIN;
        }
        if (maxValue != null && value > Long.parseLong(maxValue))
        {
            return ValidationEnum.GREATER_THAN_MAX;
        }
        return ValidationEnum.PASSED;
    }
public static ValidationEnum checkLong ( final Long value , final String minValue , final String maxValue ) { if ( minValue != null && value < Long . parseLong ( minValue ) ) { return ValidationEnum . LESS_THAN_MIN ; } if ( maxValue != null && value > Long . parseLong ( maxValue ) ) { return ValidationEnum . GREATER_THAN_MAX ; } return ValidationEnum . PASSED ; }
Method used to check if the value is a valid long.
Method used to check if the value is a valid long .