Class AddressTerm

java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.AddressTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FromTerm, RecipientTerm

public abstract class AddressTerm extends SearchTerm
This class implements Message Address comparisons.
See Also:
  • Field Details

    • address

      protected Address address
      The address.
  • Constructor Details

    • AddressTerm

      protected AddressTerm(Address address)
  • Method Details

    • getAddress

      public Address getAddress()
      Return the address to match with.
    • match

      protected boolean match(Address a)
      Match against the argument Address.
    • equals

      public boolean equals(Object obj)
      Equality comparison.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Compute a hashCode for this object.
      Overrides:
      hashCode in class Object