Class RegexStringFilter

  • All Implemented Interfaces:
    Filter<java.lang.String>

    @Deprecated
    public class RegexStringFilter
    extends java.lang.Object
    implements Filter<java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String endsWith
      Deprecated.
       
      protected java.util.regex.Pattern pattern
      Deprecated.
       
      protected java.lang.String regex
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexStringFilter​(java.lang.String regex)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean filter​(java.lang.String obj)
      Deprecated.
       
      java.lang.String getEndsWith()
      Deprecated.
       
      java.lang.String getRegex()
      Deprecated.
       
      protected void optimize()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • regex

        protected java.lang.String regex
        Deprecated.
      • pattern

        protected java.util.regex.Pattern pattern
        Deprecated.
      • endsWith

        protected java.lang.String endsWith
        Deprecated.
    • Constructor Detail

      • RegexStringFilter

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

      • getRegex

        public java.lang.String getRegex()
        Deprecated.
      • getEndsWith

        public java.lang.String getEndsWith()
        Deprecated.
      • optimize

        protected void optimize()
        Deprecated.
      • filter

        public boolean filter​(java.lang.String obj)
        Deprecated.
        Specified by:
        filter in interface Filter<java.lang.String>
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object