List of usage examples for java.util.regex Pattern asPredicate
public Predicate<String> asPredicate()
From source file:com.civprod.writerstoolbox.NaturalLanguage.util.TextAndTokenHandling.RegexTokenFilter.java
@Override public boolean test(String t) { return filterPattern.parallelStream().anyMatch((Pattern curPattern) -> curPattern.asPredicate().test(t)); }