Class RecipientTerm

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RecipientTerm
    extends AddressTerm
    A comparison of recipient headers in a message.
    Version:
    1.4
    Author:
    Chris Burdess
    See Also:
    Serialized Form
    • Constructor Detail

      • RecipientTerm

        public RecipientTerm​(Message.RecipientType type,
                             Address address)
        Constructor.
        Parameters:
        type - the recipient type
        address - the address to match
    • Method Detail

      • match

        public boolean match​(Message msg)
        Returns true only if the recipient address in the given message matches the address specified in this term.
        Specified by:
        match in class SearchTerm
      • equals

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