mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetModel.java
public ValidationEnum minMaxCheckInclusive(final int min, final int max, final double value)
    {
        if (value < min)
        {
            return ValidationEnum.LESS_THAN_MIN;
        }
        else if (value > max)
        {
            return ValidationEnum.GREATER_THAN_MAX;
        }
        
        return ValidationEnum.PASSED;
    }
/**
     * Find if the value is above the max or below the min and return the enum determining if it is valid.
     * @param min
     *      the minimum value the parsed value can have
     * @param max
     *      the maximum value the parsed value can have
     * @param value
     *      the value to check
     * @return
     *      the validation enum determining if the value passed validation or not
     */
Find if the value is above the max or below the min and return the enum determining if it is valid.
@param min
the minimum value the parsed value can have
@param max
the maximum value the parsed value can have
@param value
the value to check
@return
the validation enum determining if the value passed validation or not
Find if the value is above the max or below the min and return the enum determining if it is valid . @param min the minimum value the parsed value can have @param max the maximum value the parsed value can have @param value the value to check @return the validation enum determining if the value passed validation or not
public ValidationEnum minMaxCheckInclusive(final int min, final int max, final double value)
    {
        if (value < min)
        {
            return ValidationEnum.LESS_THAN_MIN;
        }
        else if (value > max)
        {
            return ValidationEnum.GREATER_THAN_MAX;
        }
        return ValidationEnum.PASSED;
    }
public ValidationEnum minMaxCheckInclusive ( final int min , final int max , final double value ) { if ( value < min ) { return ValidationEnum . LESS_THAN_MIN ; } else if ( value > max ) { return ValidationEnum . GREATER_THAN_MAX ; } return ValidationEnum . PASSED ; }
Find if the value is above the max or below the min and return the enum determining if it is valid.
Find if the value is above the max or below the min and return the enum determining if it is valid .