public class NotClassFilter extends AbstractBaseClassFilter implements Serializable
ClassFilter.UtilNO_ARGSABSTRACT, ANNOTATION, FALSE, INTERFACE, TRUE| Constructor and Description |
|---|
NotClassFilter(ClassFilter filter)
Constructs a new file filter that NOTs the result of another filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> clazz)
Returns the logical NOT of the underlying filter's return value for the
same File.
|
boolean |
accept(String className)
Returns the logical NOT of the underlying filter's return value for the
same arguments.
|
String[] |
args()
Get the arguments for the function.
|
String |
toString()
Provide a String representation of this c;ass filter.
|
filter, filterNames, funcNamepublic NotClassFilter(ClassFilter filter)
filter - the enclosed filter, must not be nullIllegalArgumentException - if the filter is nullpublic boolean accept(Class<?> clazz)
accept in interface ClassFilterclazz - the Class to checkpublic boolean accept(String className)
accept in interface ClassFilterclassName - the class name to check.public String toString()
toString in class AbstractBaseClassFilterpublic String[] args()
args in interface ClassFilterCopyright © 2013-2016 XENEI.com. All Rights Reserved.