public static <T>List<T> findAll(final Collection<T> collection,final Filter<T> filter){
  final List<T> matches=new ArrayList<T>(collection.size());
  for (  final T element : collection) {
    if (filter.accept(element)) {
      matches.add(element);
    }
  }
  return matches;
}

public static < T > List < T > findAll ( final Collection < T > collection , final Filter < T > filter ) { final List < T > matches = new ArrayList < T > ( collection . size ( ) ) ; for ( final T element : collection ) { if ( filter . accept ( element ) ) { matches . add ( element ) ; } } return matches ; }
iterates the collection and finds all object elements that match the filter criteria . < p / >
