Top Description Fields Constructors Methods
org.jdom2.filter

pack-priv final Class PassThroughFilter

extends AbstractFilter<Object>
Class Inheritance
Imports
java.util.ArrayList, .Collections, .Iterator, .List, .RandomAccess

A filter that does not actual filtering. This is made available through Filters#fpassthrough().
Author
Rolf Lear

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides org.jdom2.filter.AbstractFilter.serialVersionUID.

JDOM2 Serialization: Default mechanism

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
filter(Object
The content to test.
content
)

Implements org.jdom2.filter.Filter.filter.

Check to see if the content matches this Filter.
public List<Object>
filter(List<?>
The content to filter.
content
)

Overrides org.jdom2.filter.AbstractFilter.filter.

Implements org.jdom2.filter.Filter.filter.

Filter the input list keeping only the items that match the Filter.
Inherited from org.jdom2.filter.AbstractFilter:
andmatchesnegateorrefine

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.jdom2.filter.AbstractFilter.serialVersionUID.

JDOM2 Serialization: Default mechanism

Constructor Detail

PassThroughFilterback to summary
pack-priv PassThroughFilter()

Method Detail

filterback to summary
public Object filter(Object content)

Implements org.jdom2.filter.Filter.filter.

Doc from org.jdom2.filter.Filter.filter.

Check to see if the content matches this Filter. If it does, return the content cast as this filter's return type, otherwise return null.

Parameters
content:Object

The content to test.

Returns:Object

The content if it matches the filter, cast as this Filter's type.

Annotations
@Override
filterback to summary
public List<Object> filter(List<?> content)

Overrides org.jdom2.filter.AbstractFilter.filter.

Implements org.jdom2.filter.Filter.filter.

Doc from org.jdom2.filter.Filter.filter.

Filter the input list keeping only the items that match the Filter.

Parameters
content:List<?>

The content to filter.

Returns:List<Object>

a new read-only RandomAccess list of the filtered input content.

Annotations
@Override