Class AbstractListFilter

java.lang.Object
org.jivesoftware.smack.filter.AbstractListFilter
All Implemented Interfaces:
StanzaFilter, Predicate<Stanza>
Direct Known Subclasses:
AndFilter, OrFilter

public abstract class AbstractListFilter extends Object implements StanzaFilter
  • Field Details

  • Constructor Details

    • 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(List<StanzaFilter> filters)
      Creates an filter using the specified filters.
      Parameters:
      filters - the filters to add.
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object