public class ExtensionElementFilter<E extends ExtensionElement> extends java.lang.Object implements StanzaFilter
| Modifier | Constructor and Description |
|---|---|
protected |
ExtensionElementFilter(java.lang.Class<E> extensionElementClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(E extensionElement) |
boolean |
accept(Stanza stanza)
Tests whether or not the specified stanza should pass the filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasPredicate, testprotected ExtensionElementFilter(java.lang.Class<E> extensionElementClass)
public final boolean accept(Stanza stanza)
StanzaFilteraccept in interface StanzaFilterstanza - the stanza to test.stanza passes the filter.public boolean accept(E extensionElement)