public static < T > void addAll ( Collection < T > pagingResults , Collection < T > paging , BooleanExpression < T > filter ) { if ( pagingResults == null || paging == null ) return ; if ( filter != null ) { for ( T obj : paging ) { if ( filter . apply ( obj ) ) pagingResults . add ( obj ) ; } } else { // add independent of a filter for ( T obj : paging ) { pagingResults . add ( obj ) ; } } }
Add all collections