Package org.jivesoftware.smack.filter
Class NotFilter
java.lang.Object
org.jivesoftware.smack.filter.NotFilter
- All Implemented Interfaces:
Predicate<Stanza>
,StanzaFilter
Implements the logical NOT operation on a stanza filter. In other words, packets
pass this filter if they do not pass the supplied filter.
-
Constructor Summary
ConstructorsConstructorDescriptionNotFilter
(StanzaFilter filter) Creates a NOT filter using the specified filter. -
Method Summary
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 Details
-
NotFilter
Creates a NOT filter using the specified filter.- Parameters:
filter
- the filter.
-
-
Method Details
-
accept
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.
-
of
-