Class AbstractIndexFilter<E>

    • Field Detail

      • filteredCount

        public int filteredCount
      • index

        protected Index<E> index
    • Constructor Detail

      • AbstractIndexFilter

        public AbstractIndexFilter()
    • Method Detail

      • 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.
      • isFiltered

        public boolean isFiltered​(E element)
        Description copied from interface: Filter
        Indicates whether a given element is filtered or not.
        Specified by:
        isFiltered in interface Filter<E>
        Parameters:
        element - the element to be tested
        Returns:
        true if the element is filtered, false otherwise