T
- The Generic type of content returned by this Filterpublic interface Filter<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
Filter<T> |
and(Filter<?> filter)
Creates an ANDing filter.
|
List<T> |
filter(List<?> content)
Filter the input list keeping only the items that match the Filter.
|
T |
filter(Object content)
Check to see if the content matches this Filter.
|
boolean |
matches(Object content)
Check to see if the object matches a predefined set of rules.
|
Filter<? extends Object> |
negate()
Creates an 'inverse' filter
|
Filter<? extends Object> |
or(Filter<?> filter)
Creates an ORing filter
|
<R> Filter<R> |
refine(Filter<R> filter)
This is similar to the and(Filter) method except the generic type is
different.
|
List<T> filter(List<?> content)
content
- The content to filter.T filter(Object content)
content
- The content to test.boolean matches(Object content)
content
- The object to verify.true
if the object matches a predfined
set of rules.Filter<? extends Object> negate()
Filter<? extends Object> or(Filter<?> filter)
filter
- a second Filter to OR with.Filter<T> and(Filter<?> filter)
filter
- a second Filter to AND with.<R> Filter<R> refine(Filter<R> filter)
R
- The Generic type of the returned data is taken from the input
instance.filter
- The filter to refine our results with.Copyright ? 2014 Jason Hunter, Brett McLaughlin. All Rights Reserved.