Class RegexStringFilter

  • All Implemented Interfaces:
    Filter<String>

    @Deprecated
    public class RegexStringFilter
    extends Object
    implements Filter<String>
    Deprecated.
    See Filter
    A filter which uses a regular expression to match Strings. Invalid regular expressions will match nothing.

    Because regular expression matching is slow, and a common usage is to match some sort of relative file path, the regular expression is checked to see if it can be evaluated using much faster calls to String.endsWith(String).

    • Field Detail

      • regex

        protected String regex
        Deprecated.
      • pattern

        protected Pattern pattern
        Deprecated.
      • endsWith

        protected String endsWith
        Deprecated.
    • Constructor Detail

      • RegexStringFilter

        public RegexStringFilter​(String regex)
        Deprecated.
    • Method Detail

      • getRegex

        public String getRegex()
        Deprecated.
      • getEndsWith

        public String getEndsWith()
        Deprecated.
      • optimize

        protected void optimize()
        Deprecated.