private static void resolveValueConflicts(Directive directive, String generalValue, PatternCacheControl specificPattern) {
        long generalPatternValue = Long.parseLong(generalValue);
        if (specificPattern.hasDirective(directive)) {
            long specificPatternValue = Long.parseLong(specificPattern.getDirectiveValue(directive));
            if (specificPatternValue > generalPatternValue) {
                specificPattern.setDirective(directive, generalValue);
            }
            return;
        }
        specificPattern.setDirective(directive, generalValue);
    }
private static void resolveValueConflicts ( Directive directive , String generalValue , PatternCacheControl specificPattern ) { long generalPatternValue = Long . parseLong ( generalValue ) ; if ( specificPattern . hasDirective ( directive ) ) { long specificPatternValue = Long . parseLong ( specificPattern . getDirectiveValue ( directive ) ) ; if ( specificPatternValue > generalPatternValue ) { specificPattern . setDirective ( directive , generalValue ) ; } return ; } specificPattern . setDirective ( directive , generalValue ) ; }
Resolves the conflicts for a given directive between the general pattern and the specific PatternCacheControl
@param directive
@param generalValue
@param specificPattern