Class AbstractFilter<T>
java.lang.Object
org.jdom2.filter.AbstractFilter<T>
- Type Parameters:
T- The Generic type of content returned by this Filter
- All Implemented Interfaces:
Serializable, Filter<T>
- Direct Known Subclasses:
AttributeFilter, ContentFilter, ElementFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an ANDing filter.Filter the input list keeping only the items that match the Filter.final booleanCheck to see if the object matches a predefined set of rules.final Filter<?> 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.
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
matches
-
filter
Description copied from interface:FilterFilter the input list keeping only the items that match the Filter. -
negate
-
or
Description copied from interface:FilterCreates an ORing filter -
and
Description copied from interface:FilterCreates an ANDing filter. The generic type of the result is the same as this Filter. -
refine
Description copied from interface:FilterThis is similar to the and(Filter) method except the generic type is different.- Specified by:
refinein interfaceFilter<T>- 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.
-