|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - public interface ElementFilter<E>
An ElementFilter provides a filter(Object) and a getFilterMode() method. Both allow to identify
elements to be excluded or included.
The ExcludingElementFilter provides an abstract implementation which return the ElementFilter.FilterMode.EXCLUDING by default
and only needs to implement the filter(Object) method
ExcludingElementFilter| Nested Class Summary | |
|---|---|
static class |
ElementFilter.FilterMode
Declares the behavior mode which can be ElementFilter.FilterMode.EXCLUDING or ElementFilter.FilterMode.INCLUDING |
| Method Summary | |
|---|---|
boolean |
filter(E element)
The filter(Object) method should return true if the given element matches the internal ElementFilter.FilterMode |
ElementFilter.FilterMode |
getFilterMode()
Returns the ElementFilter.FilterMode in which the filter acts. |
| Method Detail |
|---|
ElementFilter.FilterMode getFilterMode()
ElementFilter.FilterMode in which the filter acts. This can be ElementFilter.FilterMode.EXCLUDING or
ElementFilter.FilterMode.INCLUDING
ElementFilter.FilterModeboolean filter(E element)
filter(Object) method should return true if the given element matches the internal ElementFilter.FilterMode
element -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||