T
- The Generic type of content returned by this Filterpublic abstract class AbstractFilter<T> extends java.lang.Object implements Filter<T>
Filter
.Constructor and Description |
---|
AbstractFilter() |
Modifier and Type | Method and Description |
---|---|
Filter<T> |
and(Filter<?> filter)
Creates an ANDing filter.
|
java.util.List<T> |
filter(java.util.List<?> content)
Filter the input list keeping only the items that match the Filter.
|
boolean |
matches(java.lang.Object content)
Check to see if the object matches a predefined set of rules.
|
Filter<?> |
negate()
Creates an 'inverse' filter
|
Filter<? extends Content> |
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.
|
public final boolean matches(java.lang.Object content)
Filter
public java.util.List<T> filter(java.util.List<?> content)
Filter
public final Filter<?> negate()
Filter
public final Filter<? extends Content> or(Filter<?> filter)
Filter
public final Filter<T> and(Filter<?> filter)
Filter
public <R> Filter<R> refine(Filter<R> filter)
Filter
refine
in interface Filter<T>
R
- The Generic type of the returned data is taken from the input
instance.filter
- The filter to refine our results with.Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.