Package net.sourceforge.pmd.util.filter
Class OrFilter<T>
- java.lang.Object
-
- net.sourceforge.pmd.util.filter.AbstractCompoundFilter<T>
-
- net.sourceforge.pmd.util.filter.OrFilter<T>
-
- Type Parameters:
T
- The underlying type on which the filter applies.
- All Implemented Interfaces:
Filter<T>
public class OrFilter<T> extends AbstractCompoundFilter<T>
A logical OR of a list of Filters. This implementation is short circuiting.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.util.filter.AbstractCompoundFilter
filters
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filter(T obj)
protected java.lang.String
getOperator()
-
Methods inherited from class net.sourceforge.pmd.util.filter.AbstractCompoundFilter
addFilter, getFilters, setFilters, toString
-
-
-
-
Method Detail
-
filter
public boolean filter(T obj)
-
getOperator
protected java.lang.String getOperator()
- Specified by:
getOperator
in classAbstractCompoundFilter<T>
-
-