public class NameClassFilter extends AbstractStringClassFilter implements Serializable
ClassFilter.UtilcaseSensitivityNO_ARGSABSTRACT, ANNOTATION, FALSE, INTERFACE, TRUE| Constructor and Description |
|---|
NameClassFilter(Case caseSensitivity,
Collection<String> names)
Constructs a new name class filter for a collection of names specifying
case-sensitivity.
|
NameClassFilter(Case caseSensitivity,
String... names)
Constructs a new name class filter for an array of names specifying
case-sensitivity.
|
NameClassFilter(Case caseSensitivity,
String name)
Construct a new name class filter specifying case-sensitivity.
|
NameClassFilter(Class<?>... names)
Constructs a new case-sensitive name class filter for an array of names.
|
NameClassFilter(Collection<String> names)
Constructs a new case-sensitive name class filter for a collection of
names.
|
NameClassFilter(String... names)
Constructs a new case-sensitive name class filter for an array of names.
|
NameClassFilter(String name)
Constructs a new case-sensitive name class filter for a single name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String className)
Checks to see if the name matches.
|
accept, addString, addStrings, addStrings, args, getStrings, toStringfilter, filterNames, funcNamepublic NameClassFilter(String name)
name - the name to allow, must not be nullIllegalArgumentException - if the name is nullpublic NameClassFilter(Case caseSensitivity, String name)
caseSensitivity - how to handle case sensitivity, null means case-sensitivename - the name to allow, must not be nullIllegalArgumentException - if the name is nullpublic NameClassFilter(String... names)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
names - the names to allow, must not be nullIllegalArgumentException - if the names array is nullpublic NameClassFilter(Class<?>... names)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
names - the names to allow, must not be nullIllegalArgumentException - if the names array is nullpublic NameClassFilter(Case caseSensitivity, String... names)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
caseSensitivity - how to handle case sensitivity, null means case-sensitivenames - the names to allow, must not be nullIllegalArgumentException - if the names array is nullpublic NameClassFilter(Collection<String> names)
names - the names to allow, must not be nullIllegalArgumentException - if the name list is nullClassCastException - if the list does not contain Stringspublic NameClassFilter(Case caseSensitivity, Collection<String> names)
caseSensitivity - how to handle case sensitivity, null means case-sensitivenames - the names to allow, must not be nullIllegalArgumentException - if the name list is nullClassCastException - if the list does not contain Stringspublic boolean accept(String className)
accept in interface ClassFilterclassName - the class name to checkCopyright © 2013-2016 XENEI.com. All Rights Reserved.