public List < KnowledgeBuilderResult > addResults ( List < KnowledgeBuilderResult > list ) { if ( list == null ) { list = new ArrayList < KnowledgeBuilderResult > ( ) ; } for ( Dialect dialect : map . values ( ) ) { List < KnowledgeBuilderResult > results = dialect . getResults ( ) ; if ( results != null ) { for ( KnowledgeBuilderResult result : results ) { if ( ! list . contains ( result ) ) { list . add ( result ) ; } } dialect . clearResults ( ) ; } } return list ; }
Add all registered Dialect results to the provided List .