private void resolvePatternSpecificity ( Map < String , PatternCacheControl > patterns ) { List < String > patternList = new ArrayList <> ( ) ; patternList . addAll ( patterns . keySet ( ) ) ; int patternCount = patternList . size ( ) ; for ( int i = 0 ; i < patternCount - 1 ; i ++ ) { String specificPattern = patternList . get ( i ) ; for ( int j = i + 1 ; j < patternCount ; j ++ ) { String generalPattern = patternList . get ( j ) ; checkPatternMatching ( patterns , specificPattern , generalPattern ) ; checkPatternMatching ( patterns , generalPattern , specificPattern ) ; } } }
Matches the patterns from the map and determines each pattern s specificity