Interface Filter<T>
- Type Parameters:
T- The Generic type of content returned by this Filter
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractFilter, AttributeFilter, ContentFilter, ElementFilter
A generalized filter to restrict visibility or mutability on a list.
- Author:
- Jools Enticknap, Bradley S. Huffman, Rolf Lear
-
Method Summary
Modifier and TypeMethodDescriptionCreates an ANDing filter.Check to see if the content matches this Filter.Filter the input list keeping only the items that match the Filter.booleanCheck to see if the object matches a predefined set of rules.negate()Creates an 'inverse' filterCreates an ORing filter<R> Filter<R> This is similar to the and(Filter) method except the generic type is different.
-
Method Details
-
filter
-
filter
-
matches
Check to see if the object matches a predefined set of rules.- Parameters:
content- The object to verify.- Returns:
trueif the object matches a predfined set of rules.
-
negate
-
or
-
and
-
refine
This is similar to the and(Filter) method except the generic type is different.- Type Parameters:
R- The Generic type of the returned data is taken from the input instance.- Parameters:
filter- The filter to refine our results with.- Returns:
- A Filter that requires content to both match our instance and the refining instance, but the generic type of the returned data is based on the refining instance, not this instance.
-