public SampleSetEQOracle < I , D > addAll ( MembershipOracle < I , D > oracle , Collection < ? extends Word < I > > words ) { if ( words . isEmpty ( ) ) { return this ; } List < DefaultQuery < I , D > > newQueries = new ArrayList <> ( words . size ( ) ) ; for ( Word < I > w : words ) { newQueries . add ( new DefaultQuery <> ( w ) ) ; } oracle . processQueries ( newQueries ) ; testQueries . addAll ( newQueries ) ; return this ; }
Adds words to the sample set . The expected output is determined by means of the specified membership oracle .