public class AfterXStanzas extends Object implements StanzaFilter
Constructor and Description |
---|
AfterXStanzas(int count) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
void |
resetCounter() |
public AfterXStanzas(int count)
public boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza(/packet) to test.public void resetCounter()