public static <T>boolean allMatch(final Collection<T> collection,final Match<T> aMatch){
  if (collection.isEmpty()) {
    return false;
  }
  for (  final T current : collection) {
    if (!aMatch.match(current)) {
      return false;
    }
  }
  return true;
}

public static < T > boolean allMatch ( final Collection < T > collection , final Match < T > aMatch ) { if ( collection . isEmpty ( ) ) { return false ; } for ( final T current : collection ) { if ( ! aMatch . match ( current ) ) { return false ; } } return true ; }
returns true if all elements in the collection match .
