T
- The type of the items to filter.public interface Filter<T>
Modifier and Type | Field and Description |
---|---|
static Filter<Object> |
ACCEPT_ANY
A filter which accepts any item.
|
static Filter<Object> |
ACCEPT_NONE
A filter which accepts no items.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(T item)
Returns
true if and only if this filter accepts the given
item . |
boolean accept(T item)
true
if and only if this filter accepts the given
item
.item
- the item to test.item
.Copyright © 2012–2017 Schlichtherle IT Services. All rights reserved.