public static Predicate<String> contains(final String pattern){
  Objects.requireNonNull(pattern,"The pattern must not be null");
  return null;
}

public static Predicate < String > contains ( final String pattern ) { Objects . requireNonNull ( pattern , "The pattern must not be null" ) ; return null ; }
create a new predicate returning true when the input string contains the given pattern .
