public abstract class

AddressStringTerm

extends StringTerm
java.lang.Object
   ↳ com.google.code.javax.mail.search.SearchTerm
     ↳ com.google.code.javax.mail.search.StringTerm
       ↳ com.google.code.javax.mail.search.AddressStringTerm
Known Direct Subclasses

Class Overview

This abstract class implements string comparisons for Message addresses.

Note that this class differs from the AddressTerm class in that this class does comparisons on address strings rather than Address objects.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.search.StringTerm
From class com.google.code.javax.mail.search.SearchTerm
[Expand]
Inherited Fields
From class com.google.code.javax.mail.search.StringTerm
Protected Constructors
AddressStringTerm(String pattern)
Constructor.
Public Methods
boolean equals(Object obj)
Equality comparison.
Protected Methods
boolean match(Address a)
Check whether the address pattern specified in the constructor is a substring of the string representation of the given Address object.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.search.StringTerm
From class com.google.code.javax.mail.search.SearchTerm
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 3086821234204980368 (0x2ad6978ecdebb490)

Protected Constructors

protected AddressStringTerm (String pattern)

Constructor.

Parameters
pattern The address pattern to be compared.

Public Methods

public boolean equals (Object obj)

Equality comparison.

Parameters
obj

Protected Methods

protected boolean match (Address a)

Check whether the address pattern specified in the constructor is a substring of the string representation of the given Address object.

Note that if the string representation of the given Address object contains charset or transfer encodings, the encodings must be accounted for, during the match process.

Parameters
a The comparison is applied to this Address object.
Returns
  • true if the match succeeds, otherwise false.