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