public static < T > Collection < T > bagOf ( SearchMethod < T > method ) { Collection < T > result = new ArrayList < T > ( ) ; findAll ( result , method ) ; return result ; }
Finds a bag of all goals of a search .