Package org.jivesoftware.smack.filter
Class AbstractListFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.AbstractListFilter
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
public abstract class AbstractListFilter extends java.lang.Object implements StanzaFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<StanzaFilter>
filters
The list of filters.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractListFilter()
Creates an empty filter.protected
AbstractListFilter(java.util.List<StanzaFilter> filters)
Creates an filter using the specified filters.protected
AbstractListFilter(StanzaFilter... filters)
Creates an filter using the specified filters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(StanzaFilter filter)
Adds a filter to the filter list.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.filter.StanzaFilter
accept, asPredicate, test
-
-
-
-
Field Detail
-
filters
protected final java.util.List<StanzaFilter> filters
The list of filters.
-
-
Constructor Detail
-
AbstractListFilter
protected AbstractListFilter()
Creates an empty filter.
-
AbstractListFilter
protected AbstractListFilter(StanzaFilter... filters)
Creates an filter using the specified filters.- Parameters:
filters
- the filters to add.
-
AbstractListFilter
protected AbstractListFilter(java.util.List<StanzaFilter> filters)
Creates an filter using the specified filters.- Parameters:
filters
- the filters to add.
-
-
Method Detail
-
addFilter
public void addFilter(StanzaFilter filter)
Adds a filter to the filter list. A stanza will pass the filter if all of the filters in the list accept it.- Parameters:
filter
- a filter to add to the filter list.
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-