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() |
public final boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza(/packet) to test.protected abstract boolean acceptSpecific(S packet)
Copyright © 2019. All rights reserved.