JavaScript is disabled on your browser.
javax.mail.search

Class FromStringTerm

  • All Implemented Interfaces:
    java.io.Serializable


    public final class FromStringTerm
    extends AddressStringTerm 
    A string comparison of the From address header.
    Since:
    JavaMail 1.1
    See Also:
    Serialized Form
    • Constructor Summary

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

      Methods
      Modifier and Type Method and 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

AltStyle によって変換されたページ (->オリジナル) /