public class AndFilter extends AbstractListFilter implements StanzaFilter
filters
Constructor and Description |
---|
AndFilter()
Creates an empty AND filter.
|
AndFilter(StanzaFilter... filters)
Creates an AND filter using the specified filters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
addFilter, toString
public AndFilter()
AbstractListFilter.addFilter(StanzaFilter)
method.public AndFilter(StanzaFilter... filters)
filters
- the filters to add.public boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza(/packet) to test.