java.io.Serializablepublic final class AndTerm extends SearchTerm
| Modifier and Type | Field | Description |
|---|---|---|
protected SearchTerm[] |
terms |
The target terms.
|
| Constructor | Description |
|---|---|
AndTerm(SearchTerm[] t) |
Constructor with multiple terms.
|
AndTerm(SearchTerm t1,
SearchTerm t2) |
Constructor with two terms.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
SearchTerm[] |
getTerms() |
Returns the search terms.
|
int |
hashCode() |
|
boolean |
match(Message message) |
Returns true only if all the terms match the specified message.
|
protected SearchTerm[] terms
public AndTerm(SearchTerm t1, SearchTerm t2)
t1 - the first termt2 - the second termpublic AndTerm(SearchTerm[] t)
t - the termspublic SearchTerm[] getTerms()
public boolean match(Message message)
match in class SearchTermpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object© Copyright 2003, 2004 The Free Software Foundation, All rights reserved