bibliothek.util
Interface Filter<T>

Type Parameters:
T - the kind of items this filter handles
All Known Implementing Classes:
PresetFilter, RegexFilter

public interface Filter<T>

A filter is used to split up a set of items to a set of included and a set of excluded items.

Author:
Benjamin Sigg

Method Summary
 boolean includes(T item)
          Tells whether the item item should be included or not.
 

Method Detail

includes

boolean includes(T item)
Tells whether the item item should be included or not.

Parameters:
item - the item to include, depending on the user of this filter the item may or may not be null
Returns:
true if item is included, false if item is excluded