java.io.Serializablepublic final class OrTerm extends SearchTerm
| Modifier and Type | Field | Description |
|---|---|---|
protected SearchTerm[] |
terms |
The target terms.
|
| Constructor | Description |
|---|---|
OrTerm(SearchTerm[] t) |
Constructor with multiple search terms.
|
OrTerm(SearchTerm t1,
SearchTerm t2) |
Constructor with two operands.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
SearchTerm[] |
getTerms() |
Returns the search terms.
|
int |
hashCode() |
|
boolean |
match(Message msg) |
Returns true only if any of the terms specified in this term match
the given message.
|
protected SearchTerm[] terms
public OrTerm(SearchTerm t1, SearchTerm t2)
t1 - the first termt2 - the second termpublic OrTerm(SearchTerm[] t)
t - the termspublic SearchTerm[] getTerms()
public boolean match(Message msg)
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