public abstract class FlexibleStanzaTypeFilter<S extends Stanza> extends Object implements StanzaFilter
Modifier and Type | Field and Description |
---|---|
protected Class<S> |
stanzaType |
Constructor and Description |
---|
FlexibleStanzaTypeFilter() |
FlexibleStanzaTypeFilter(Class<S> packetType) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
protected abstract boolean |
acceptSpecific(S packet) |
String |
toString() |
protected final Class<S extends Stanza> stanzaType
public FlexibleStanzaTypeFilter(Class<S> packetType)
public FlexibleStanzaTypeFilter()
public final boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza(/packet) to test.protected abstract boolean acceptSpecific(S packet)