public class OrClassFilter extends AbstractConditionalClassFilter implements Serializable
true if any filters in the list return
true. Otherwise, it returns false. Checking of the class
filter list stops when the first filter returns true.ClassFilter.UtilABSTRACT, ANNOTATION, FALSE, INTERFACE, TRUE| Constructor and Description |
|---|
OrClassFilter(ClassFilter... filters)
Constructs a new file filter that ORs the result of an array of filters.
|
OrClassFilter(Collection<ClassFilter> filters)
Constructs a new instance of
OrClassFilter with the
specified filters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> clazz)
Accept a class.
|
boolean |
accept(String className)
Accept a class name.
|
String |
funcName()
Function name for the filter.
|
addClassFilter, addClassFilters, addClassFilters, args, filter, filterNames, getClassFilters, isFilterListEmpty, removeClassFilter, removeClassFilters, removeClassFilters, setClassFilters, setClassFilters, toStringpublic OrClassFilter(Collection<ClassFilter> filters)
OrClassFilter with the
specified filters.filters - a collection of filtersIllegalArgumentException - if any filter is null.public OrClassFilter(ClassFilter... filters)
filters - an array of filtersIllegalArgumentException - if any filter is null.public String funcName()
funcName in interface ClassFilterpublic boolean accept(Class<?> clazz)
accept in interface ClassFilterclazz - the class to accept.public boolean accept(String className)
accept in interface ClassFilterclassName - the class name to accept.Copyright © 2013-2016 XENEI.com. All Rights Reserved.