public final class AndTerm extends SearchTerm
| Constructor and Description |
|---|
AndTerm (SearchTerm[] t)
Constructor with multiple terms.
|
AndTerm (SearchTerm t1,
SearchTerm t2)
Constructor with two terms.
|
| Modifier and Type | Method and 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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic 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 SearchTerm public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object