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 int
filteredCount
protected Index<E>
index
-
Constructor Summary
Constructors Constructor Description AbstractIndexFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFilteredCount()
Returns the number of elements currently filtered.boolean
isActive()
Indicates whether at least one element is currently filtered.boolean
isFiltered(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:Filter
Indicates whether at least one element is currently filtered.
-
getFilteredCount
public int getFilteredCount()
Description copied from interface:Filter
Returns the number of elements currently filtered.- Specified by:
getFilteredCount
in interfaceFilter<E>
- Returns:
- the number of filtered elements.
-
isFiltered
public boolean isFiltered(E element)
Description copied from interface:Filter
Indicates whether a given element is filtered or not.- Specified by:
isFiltered
in interfaceFilter<E>
- Parameters:
element
- the element to be tested- Returns:
- true if the element is filtered, false otherwise
-
-