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

Class SubjectTerm

  • All Implemented Interfaces:
    java.io.Serializable


    public final class SubjectTerm
    extends StringTerm 
    A comparison of message subject headers.
    See Also:
    Serialized Form
    • Constructor Summary

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

      Methods
      Modifier and Type Method and Description
      boolean equals (java.lang.Object other)
      boolean match (Message msg)
      Returns true only if the pattern specified in this term is a substring of the given message's Subject header.
      • Methods inherited from class java.lang.Object

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

      • SubjectTerm

        public SubjectTerm(java.lang.String pattern)
        Constructor.
        Parameters:
        pattern - the pattern to match
    • Method Detail

      • match

        public boolean match(Message msg)
        Returns true only if the pattern specified in this term is a substring of the given message's Subject header.
        Specified by:
        match in class SearchTerm
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class StringTerm

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