Class AbstractMutableIndexFilter<E>

java.lang.Object
com.macrofocus.filter.AbstractFilter<E>
com.macrofocus.filter.AbstractMutableIndexFilter<E>
All Implemented Interfaces:
Filter<E>, MutableFilter<E>, MutableIndexFilter<E>
Direct Known Subclasses:
SimpleIndexFilter

public abstract class AbstractMutableIndexFilter<E> extends AbstractFilter<E> implements MutableIndexFilter<E>
Created by luc on 24.04.17.
  • Field Details

    • filteredCount

      public int filteredCount
    • index

      protected Index<E> index
  • Constructor Details

    • AbstractMutableIndexFilter

      public AbstractMutableIndexFilter()
  • Method Details

    • isActive

      public boolean isActive()
      Description copied from interface: Filter
      Indicates whether at least one element is currently filtered.
      Specified by:
      isActive in interface Filter<E>
      Returns:
      true if at least one element is filtered, false otherwise.
    • getFilteredCount

      public int getFilteredCount()
      Description copied from interface: Filter
      Returns the number of elements currently filtered.
      Specified by:
      getFilteredCount in interface Filter<E>
      Returns:
      the number of filtered elements.
    • setIndex

      public void setIndex(Index<E> index, Iterable<E> filtered, Iterable<E> unfiltered, int filteredCount)
      Specified by:
      setIndex in interface MutableIndexFilter<E>