public class ShortcutPredicates extends java.lang.Object implements StanzaFilter
Constructor and Description |
---|
ShortcutPredicates() |
ShortcutPredicates(java.util.Collection<? extends StanzaFilter> predicates) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
boolean |
addPredicate(StanzaFilter predicate) |
boolean |
removePredicate(StanzaFilter prediacte) |
public ShortcutPredicates()
public ShortcutPredicates(java.util.Collection<? extends StanzaFilter> predicates)
public boolean addPredicate(StanzaFilter predicate)
public boolean removePredicate(StanzaFilter prediacte)
public boolean accept(Stanza packet)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza(/packet) to test.