public class AndClassFilter extends AbstractConditionalClassFilter 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.ClassFilter.UtilABSTRACT, ANNOTATION, FALSE, INTERFACE, TRUE| Constructor and Description |
|---|
AndClassFilter(ClassFilter... classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of filters. |
AndClassFilter(Collection<ClassFilter> 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.
|
String |
funcName()
Function name for the filter.
|
addClassFilter, addClassFilters, addClassFilters, args, filter, filterNames, getClassFilters, isFilterListEmpty, removeClassFilter, removeClassFilters, removeClassFilters, setClassFilters, setClassFilters, toStringpublic AndClassFilter(Collection<ClassFilter> classFilters)
AndClassFilter with the
specified list of filters.classFilters - a Collection of ClassFilter instances, copied, null ignoredpublic AndClassFilter(ClassFilter... classFilters)
AndClassFilter with the
specified list of filters.classFilters - a List of ClassFilter instances, copied, null ignoredpublic String funcName()
funcName in interface ClassFilterpublic boolean accept(String className)
accept in interface ClassFilterclassName - the class name to accept.public boolean accept(Class<?> clazz)
accept in interface ClassFilterclazz - the class to accept.Copyright © 2013-2016 XENEI.com. All Rights Reserved.