public class OrClassFilter extends _AbstractConditionalFilter 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.ClassPathFilter.UtilEXECUTION_ORDERABSTRACT_CLASS, ANNOTATION_CLASS, FALSE, INTERFACE_CLASS, TRUE| Constructor and Description |
|---|
OrClassFilter(ClassPathFilter... filters)
Constructs a new file filter that ORs the result of an array of filters.
|
OrClassFilter(Collection<ClassPathFilter> 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.
|
boolean |
accept(URL url)
Accept a URL.
|
String |
funcName()
Function name for the filter.
|
ClassPathFilter |
optimize() |
addFilter, addFilters, addFilters, args, equals, filterClasses, filterNames, filterURLs, getFilters, hashCode, isFilterListEmpty, removeFilter, removeFilters, removeFilters, setFilters, setFilters, toStringpublic OrClassFilter(Collection<ClassPathFilter> filters)
OrClassFilter with the
specified filters.filters - a collection of filtersIllegalArgumentException - if any filter is null.public OrClassFilter(ClassPathFilter... filters)
filters - an array of filtersIllegalArgumentException - if any filter is null.public String funcName()
funcName in interface ClassPathFilterpublic boolean accept(URL url)
accept in interface ClassPathFilterurl - the url to accept.public boolean accept(String className)
accept in interface ClassPathFilterclassName - the class name to accept.public boolean accept(Class<?> clazz)
ClassPathFilteraccept in interface ClassPathFilterclazz - the clazz to accept.public ClassPathFilter optimize()
optimize in interface ClassPathFilterCopyright © 2013-2017 XENEI.com. All Rights Reserved.