Package com.macrofocus.filter
Class AbstractIndexFilter<E>
- java.lang.Object
-
- com.macrofocus.filter.AbstractFilter<E>
-
- com.macrofocus.filter.AbstractIndexFilter<E>
-
- All Implemented Interfaces:
Filter<E>,IndexFilter<E>
- Direct Known Subclasses:
AbstractMutableIndexFilter
public abstract class AbstractIndexFilter<E> extends AbstractFilter<E> implements IndexFilter<E>
Created by luc on 24.04.17.
-
-
Field Summary
Fields Modifier and Type Field Description intfilteredCountprotected Index<E>index
-
Constructor Summary
Constructors Constructor Description AbstractIndexFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFilteredCount()Returns the number of elements currently filtered.booleanisActive()Indicates whether at least one element is currently filtered.booleanisFiltered(E element)Indicates whether a given element is filtered or not.-
Methods inherited from class com.macrofocus.filter.AbstractFilter
addFilterListener, addWeakFilterListener, isEnabled, notifyFilteredChanged, removeFilterListener, removeFilterListeners, setEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.filter.Filter
addFilterListener, addWeakFilterListener, isEnabled, isFiltered, removeFilterListener, removeFilterListeners
-
-
-
-
Method Detail
-
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.
-
isFiltered
public boolean isFiltered(E element)
Description copied from interface:FilterIndicates whether a given element is filtered or not.- Specified by:
isFilteredin interfaceFilter<E>- Parameters:
element- the element to be tested- Returns:
- true if the element is filtered, false otherwise
-
-