public T match ( Collection < I > items ) { for ( I item : items ) { T match = match ( item ) ; if ( match != null ) { return match ; } } return null ; }
Returns target if one of collection items match . Otherwise returns null . Matched targets mappings are removed .