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