public class AndFilter extends AbstractListFilter implements StanzaFilter
filters| Constructor and Description |
|---|
AndFilter()
Creates an empty AND filter.
|
AndFilter(java.util.List<StanzaFilter> filters)
Creates an AND filter using the specified filters.
|
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasPredicate, testpublic AndFilter()
AbstractListFilter.addFilter(StanzaFilter) method.public AndFilter(StanzaFilter... filters)
filters - the filters to add.public AndFilter(java.util.List<StanzaFilter> filters)
filters - the filters to add.public boolean accept(Stanza packet)
StanzaFilteraccept in interface StanzaFilterpacket - the stanza to test.stanza passes the filter.