Skip to content

Instantly share code, notes, and snippets.

@nschlimm
Last active January 30, 2019 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nschlimm/a1931f2fe787c7f03a4b17d023373ff4 to your computer and use it in GitHub Desktop.
Save nschlimm/a1931f2fe787c7f03a4b17d023373ff4 to your computer and use it in GitHub Desktop.
Predicates with standard parameter
public static class Predicates {
private String pattern;
public boolean containsPattern(String string) {
return string.contains(pattern);
}
public Predicates(String pattern) {
this.pattern = pattern;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment