Class ShortcutPredicates
- java.lang.Object
-
- org.jivesoftware.smack.sm.predicates.ShortcutPredicates
-
- All Implemented Interfaces:
StanzaFilter,Predicate<Stanza>
public class ShortcutPredicates extends java.lang.Object implements StanzaFilter
-
-
Constructor Summary
Constructors Constructor Description ShortcutPredicates()ShortcutPredicates(java.util.Collection<? extends StanzaFilter> predicates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Stanza packet)Tests whether or not the specified stanza should pass the filter.booleanaddPredicate(StanzaFilter predicate)booleanremovePredicate(StanzaFilter prediacte)-
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
-
ShortcutPredicates
public ShortcutPredicates()
-
ShortcutPredicates
public ShortcutPredicates(java.util.Collection<? extends StanzaFilter> predicates)
-
-
Method Detail
-
addPredicate
public boolean addPredicate(StanzaFilter predicate)
-
removePredicate
public boolean removePredicate(StanzaFilter prediacte)
-
accept
public boolean accept(Stanza packet)
Description copied from interface:StanzaFilterTests whether or not the specified stanza should pass the filter.- Specified by:
acceptin interfaceStanzaFilter- Parameters:
packet- the stanza to test.- Returns:
- true if and only if
stanzapasses the filter.
-
-