Package com.macrofocus.filter
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.macrofocus.filter.AbstractFilter
addFilterListener, addWeakFilterListener, isEnabled, notifyFilteredChanged, removeFilterListener, removeFilterListeners, setEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.macrofocus.filter.Filter
addFilterListener, addWeakFilterListener, isEnabled, isFiltered, isFilteredBy, removeFilterListener, removeFilterListenersMethods inherited from interface com.macrofocus.filter.MutableFilter
clearFilter, clearFilterBy, setEnabled, setFiltered, setFilteredIterable, setFilteredStateMethods inherited from interface com.macrofocus.filter.MutableIndexFilter
getInputFilter
-
Field Details
-
filteredCount
public int filteredCount -
index
-
-
Constructor Details
-
AbstractMutableIndexFilter
public AbstractMutableIndexFilter()
-
-
Method Details
-
isActive
public boolean isActive()Description copied from interface:FilterIndicates whether at least one element is currently filtered. -
getFilteredCount
public int getFilteredCount()Description copied from interface:FilterReturns the number of elements currently filtered.- Specified by:
getFilteredCountin interfaceFilter<E>- Returns:
- the number of filtered elements.
-
setIndex
public void setIndex(Index<E> index, Iterable<E> filtered, Iterable<E> unfiltered, int filteredCount) - Specified by:
setIndexin interfaceMutableIndexFilter<E>
-