Package org.jivesoftware.smack.filter
Class ExtensionElementFilter<E extends ExtensionElement>
- java.lang.Object
-
- org.jivesoftware.smack.filter.ExtensionElementFilter<E>
-
- All Implemented Interfaces:
StanzaFilter,Predicate<Stanza>
- Direct Known Subclasses:
EventItemsExtensionFilter
public class ExtensionElementFilter<E extends ExtensionElement> extends Object implements StanzaFilter
-
-
Constructor Summary
Constructors Constructor Description ExtensionElementFilter(Class<E> extensionElementClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(E extensionElement)booleanaccept(Stanza stanza)Tests whether or not the specified stanza should pass the filter.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.filter.StanzaFilter
asPredicate, test
-
-
-
-
Constructor Detail
-
ExtensionElementFilter
public ExtensionElementFilter(Class<E> extensionElementClass)
-
-
Method Detail
-
accept
public final boolean accept(Stanza stanza)
Description copied from interface:StanzaFilterTests whether or not the specified stanza should pass the filter.- Specified by:
acceptin interfaceStanzaFilter- Parameters:
stanza- the stanza to test.- Returns:
- true if and only if
stanzapasses the filter.
-
-