question: private static boolean evaluateOptionsRules ( List reqOptions , List regOptions ) { if ( reqOptions == null || regOptions == null || ( reqOptions . size ( ) == 0 ) ) { return true ; } Iterator i = reqOptions . iterator ( ) ; while ( i . hasNext ( ) ) { String option = ( String ) i . next ( ) ; if ( regOptions . contains ( option ) ) { return true ; } } return false ; }
target:  Performs options matching for queries.  The match succeeds if either list is null or if there is any intersection between the lists.