public class OrFilter extends AbstractListFilter implements StanzaFilter
filters
Constructor and Description |
---|
OrFilter()
Creates an empty OR filter.
|
OrFilter(StanzaFilter... filters)
Creates an OR 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 OrFilter()
AbstractListFilter.addFilter(StanzaFilter)
method.public OrFilter(StanzaFilter... filters)
filters
- the filters to add.public boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza to test.