public class RegexPredicate extends Object implements com.google.common.base.Predicate<CharSequence>
Predicate that checks that a given input string matches a regular expression. If a given
input is null this predicate returns false.| Modifier and Type | Field and Description |
|---|---|
private Pattern |
pattern
Regular expression.
|
| Constructor and Description |
|---|
RegexPredicate(Pattern p)
Pattern constructor.
|
RegexPredicate(String s)
String constructor.
|
public RegexPredicate(@Nonnull Pattern p)
p - the pattern to match the input againstpublic boolean apply(CharSequence input)
apply in interface com.google.common.base.Predicate<CharSequence>Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.