Package net.shibboleth.shared.logic
Class RegexPredicate
java.lang.Object
net.shibboleth.shared.logic.RegexPredicate
- All Implemented Interfaces:
Predicate<CharSequence>
A
Predicate that checks that a given input string matches a regular expression. If a given
input is null this predicate returns false.- Since:
- 7.4.0
-
Field Details
-
pattern
Regular expression.
-
-
Constructor Details
-
RegexPredicate
Pattern constructor.- Parameters:
p- the pattern to match the input against
-
RegexPredicate
String constructor.- Parameters:
s- the pattern to match the input against
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<CharSequence>
-