public final class AndTerm extends SearchTerm
Constructor and Description |
---|
AndTerm(SearchTerm[] t)
Constructor that takes an array of SearchTerms.
|
AndTerm(SearchTerm t1,
SearchTerm t2)
Constructor that takes two terms.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Equality comparison.
|
SearchTerm[] |
getTerms()
Return the search terms.
|
int |
hashCode()
Compute a hashCode for this object.
|
boolean |
match(Message msg)
The AND operation.
|
public AndTerm(SearchTerm t1, SearchTerm t2)
t1
- first termt2
- second termpublic AndTerm(SearchTerm[] t)
t
- array of termspublic SearchTerm[] getTerms()
public boolean match(Message msg)
The terms specified in the constructor are applied to the given object and the AND operator is applied to their results.
match
in class SearchTerm
msg
- The specified SearchTerms are applied to this Message
and the AND operator is applied to their results.Copyright © 2017 JBoss by Red Hat. All rights reserved.