public class NotFilter extends Object implements StanzaFilter
Constructor and Description |
---|
NotFilter(StanzaFilter filter)
Creates a NOT filter using the specified filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
public NotFilter(StanzaFilter filter)
filter
- the filter.public boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza to test.