public QueryAnswers unify ( MultiUnifier multiUnifier ) { QueryAnswers unifiedAnswers = new QueryAnswers ( ) ; this . stream ( ) . flatMap ( multiUnifier :: apply ) . filter ( ans -> ! ans . isEmpty ( ) ) . forEach ( unifiedAnswers :: add ) ; return unifiedAnswers ; }
unify the answers by applying multiunifier to variable set