T
- the type of element to check.public interface Filter<T>
Modifier and Type | Method and Description |
---|---|
boolean |
accept(T element)
Checks whether or not the specified element is accepted.
|
boolean accept(T element)
element
- the element to test.true
if the element is accepted by the filter, false
otherwise.