Class RegExStringFilter

  • All Implemented Interfaces:
    Filter<String>
    Direct Known Subclasses:
    ClassPathFilter

    public class RegExStringFilter
    extends Object
    implements Filter<String>
    String filter that matches using regular expressions.
    Author:
    Nick Collier
    • Field Detail

      • pattern

        protected Pattern pattern
    • Constructor Detail

      • RegExStringFilter

        protected RegExStringFilter()
      • RegExStringFilter

        public RegExStringFilter​(String regEx)
        Creates a RegExStringFilter that will evaluate to true if the passed in String matches the specified regular expression.
        Parameters:
        regEx - the regular expression to match
    • Method Detail

      • getPattern

        public String getPattern()
        Gets the regular expression pattern for this RegExFilter.
        Returns:
        the regular expression pattern for this RegExFilter.