|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.util.filter.PresetFilter<T>
T
- the kind of item this filter handlespublic class PresetFilter<T>
This filter keeps a set of items, an item is included if it is contained in that set.
Constructor Summary | |
---|---|
PresetFilter(T... items)
Creates a new filter |
Method Summary | |
---|---|
boolean |
includes(T item)
Tells whether the item item should be included or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PresetFilter(T... items)
items
- all the items to includeMethod Detail |
---|
public boolean includes(T item)
Filter
item
should be included or not.
includes
in interface Filter<T>
item
- the item to include, depending on the user of this filter the item may or may not be null
true
if item
is included, false
if item
is excluded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |