private static boolean queryParamsOperatorAlwaysMatchesOperator ( QueryParam . Type type , List < String > queryParamList , ComparisonOperator operator ) { for ( String queryItem : queryParamList ) { Matcher matcher = getPattern ( type ) . matcher ( queryItem ) ; String op = "" ; if ( matcher . find ( ) ) { op = matcher . group ( 1 ) ; } if ( operator != getComparisonOperator ( op , type ) ) { return false ; } } return true ; }
Auxiliary method to check if the operator of each of the values in the queryParamList matches the operator passed .