public class StanzaIdFilter extends Object implements StanzaFilter
Constructor and Description |
---|
StanzaIdFilter(Stanza stanza)
Creates a new stanza ID filter using the specified stanza's ID.
|
StanzaIdFilter(String stanzaID)
Creates a new stanza ID filter using the specified stanza ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza stanza)
Tests whether or not the specified stanza should pass the filter.
|
String |
toString() |
public StanzaIdFilter(Stanza stanza)
stanza
- the stanza which the ID is taken from.public StanzaIdFilter(String stanzaID)
stanzaID
- the stanza ID to filter for.public boolean accept(Stanza stanza)
StanzaFilter
accept
in interface StanzaFilter
stanza
- the stanza to test.