Class StringTerm

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean ignoreCase
      Whether to ignore case during comparison.
      protected java.lang.String pattern
      The pattern to match.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StringTerm​(java.lang.String pattern)  
      protected StringTerm​(java.lang.String pattern, boolean ignoreCase)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      boolean getIgnoreCase()
      Indicates whether to ignore case during comparison.
      java.lang.String getPattern()
      Returns the pattern to match.
      int hashCode()  
      protected boolean match​(java.lang.String s)
      Returns true if the specified pattern is a substring of the given string.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        protected java.lang.String pattern
        The pattern to match.
      • ignoreCase

        protected boolean ignoreCase
        Whether to ignore case during comparison.
    • Constructor Detail

      • StringTerm

        protected StringTerm​(java.lang.String pattern)
      • StringTerm

        protected StringTerm​(java.lang.String pattern,
                             boolean ignoreCase)
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
        Returns the pattern to match.
      • getIgnoreCase

        public boolean getIgnoreCase()
        Indicates whether to ignore case during comparison.
      • match

        protected boolean match​(java.lang.String s)
        Returns true if the specified pattern is a substring of the given string.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object