Class FromStringTerm

    • Constructor Summary

      Constructors 
      Constructor Description
      FromStringTerm​(java.lang.String pattern)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      boolean match​(Message msg)
      Indicates whether the address pattern specified in the constructor is a substring of the string representation of the From address in the given message.
      • Methods inherited from class java.lang.Object

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

      • FromStringTerm

        public FromStringTerm​(java.lang.String pattern)
        Constructor.
        Parameters:
        address - the address pattern for comparison
    • Method Detail

      • match

        public boolean match​(Message msg)
        Indicates whether the address pattern specified in the constructor is a substring of the string representation of the From address in the given message.
        Specified by:
        match in class SearchTerm
        Parameters:
        msg - the message