public class AndClassFilter extends _AbstractConditionalFilter implements Serializable
true if all filters in the list return
true. Otherwise, it returns false. Checking of the file
filter list stops when the first filter returns false.ClassPathFilter.UtilEXECUTION_ORDERABSTRACT_CLASS, ANNOTATION_CLASS, FALSE, INTERFACE_CLASS, TRUE| Constructor and Description |
|---|
AndClassFilter(ClassPathFilter... classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of filters. |
AndClassFilter(Collection<ClassPathFilter> classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of 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 AndClassFilter(Collection<ClassPathFilter> classFilters)
AndClassFilter with the
specified list of filters.classFilters - a Collection of ClassFilter instances, copied, null ignoredpublic AndClassFilter(ClassPathFilter... classFilters)
AndClassFilter with the
specified list of filters.classFilters - a List of ClassFilter instances, copied, null ignoredpublic String funcName()
funcName in interface ClassPathFilterpublic boolean accept(String className)
accept in interface ClassPathFilterclassName - the class name to accept.public boolean accept(URL url)
accept in interface ClassPathFilterurl - the url to accept.public boolean accept(Class<?> clazz)
accept in interface ClassPathFilterclazz - the clazz to accept.public ClassPathFilter optimize()
optimize in interface ClassPathFilterCopyright © 2013-2017 XENEI.com. All Rights Reserved.