public static int testLong(long value, long min, long max) {
        if ((value < min) || (value > max)) {
            return VALIDATE_ERROR;
        }
        return VALIDATE_OK;
    }
public static int testLong ( long value , long min , long max ) { if ( ( value < min ) || ( value > max ) ) { return VALIDATE_ERROR ; } return VALIDATE_OK ; }
Test the input value against the allowed min and max.

@param value
@param min
@param max
@return int