/** * @param regex regular expression * @param description custom descriptiom for this regex * @return a predicate that evaluates to <code>true</code> if the actual value matches the * regular expression */ public Predicate matches(String regex, String description) { return new MatchesPredicate(regex, description); }
/** * @param regex regular expression * @param description custom descriptiom for this regex * @return a predicate that evaluates to <code>true</code> if the actual value matches the * regular expression */ public Predicate matches(String regex, String description) { return new MatchesPredicate(regex, description); }
/** * @param regex regular expression * @return a predicate that evaluates to <code>true</code> if the actual value matches the * regular expression */ public Predicate matches(String regex) { return new MatchesPredicate(regex); }
/** * @param regex regular expression * @param flags regular expression flags * @return a predicate that evaluates to <code>true</code> if the actual value matches the * regular expression */ public Predicate matches(String regex, int flags) { return new MatchesPredicate(regex, flags); }
/** * @param regex regular expression * @param flags regular expression flags * @return a predicate that evaluates to <code>true</code> if the actual value matches the * regular expression */ public Predicate matches(String regex, int flags) { return new MatchesPredicate(regex, flags); }
/** * @param regex regular expression * @return a predicate that evaluates to <code>true</code> if the actual value matches the * regular expression */ public Predicate matches(String regex) { return new MatchesPredicate(regex); }