Class OnceForThisStanza
- java.lang.Object
-
- org.jivesoftware.smack.sm.predicates.tcp.OnceForThisStanza
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
public final class OnceForThisStanza extends java.lang.Object implements StanzaFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.static void
setup(XMPPTCPConnection connection, Stanza packet)
-
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
-
-
-
-
Method Detail
-
setup
public static void setup(XMPPTCPConnection connection, Stanza packet)
-
accept
public boolean accept(Stanza packet)
Description copied from interface:StanzaFilter
Tests whether or not the specified stanza should pass the filter.- Specified by:
accept
in interfaceStanzaFilter
- Parameters:
packet
- the stanza to test.- Returns:
- true if and only if
stanza
passes the filter.
-
-