public abstract class AbstractStringClassFilter extends AbstractBaseClassFilter
ClassFilter.Util| Modifier and Type | Field and Description |
|---|---|
protected Case |
caseSensitivity
Whether the comparison is case sensitive.
|
NO_ARGSABSTRACT, ANNOTATION, FALSE, INTERFACE, TRUE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStringClassFilter(Case caseSensitivity,
Collection<String> strings)
Constructs a new name class filter for a collection of names specifying
case-sensitivity.
|
protected |
AbstractStringClassFilter(Case caseSensitivity,
String... strings)
Constructs a new name class filter for an array of names specifying
case-sensitivity.
|
protected |
AbstractStringClassFilter(Case caseSensitivity,
String str)
Construct a new name class filter specifying case-sensitivity.
|
protected |
AbstractStringClassFilter(Collection<String> strings)
Constructs a new case-sensitive name class filter for a collection of
names.
|
protected |
AbstractStringClassFilter(String... strings)
Constructs a new case-sensitive name class filter for an array of names.
|
protected |
AbstractStringClassFilter(String str)
Constructs a new case-sensitive name class filter for a single name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> clazz)
Converts class to name and calls accept( className )
|
void |
addString(String str)
Add a string to the filter.
|
void |
addStrings(Collection<String> strings)
Add a collection of strings to the filter.
|
void |
addStrings(String... strings)
Add an array of strings to the filter.
|
String[] |
args()
Get the arguments for the function.
|
List<String> |
getStrings()
Get the list of strings from the filter.
|
String |
toString() |
filter, filterNames, funcNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptprotected final Case caseSensitivity
protected AbstractStringClassFilter(String str)
str - the string to allow, must not be nullIllegalArgumentException - if the str is nullprotected AbstractStringClassFilter(Case caseSensitivity, String str)
str - the string to allow, must not be nullcaseSensitivity - how to handle case sensitivity, null = case-sensitiveIllegalArgumentException - if the name is nullprotected AbstractStringClassFilter(String... strings)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
strings - the array of strings to allow, must not be null or zero lengthIllegalArgumentException - if the names array is nullprotected AbstractStringClassFilter(Case caseSensitivity, String... strings)
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-sensitivestrings - the array of strings to allow, must not be null or zero lengthIllegalArgumentException - if the names array is nullprotected AbstractStringClassFilter(Collection<String> strings)
strings - the array of strings to allow, must not be null or zero lengthIllegalArgumentException - if the name list is nullClassCastException - if the list does not contain Stringsprotected AbstractStringClassFilter(Case caseSensitivity, Collection<String> strings)
caseSensitivity - how to handle case sensitivity, null means case-sensitivestrings - the strings to check against.IllegalArgumentException - if the name list is nullClassCastException - if the list does not contain Stringspublic String[] args()
public final void addString(String str)
str - the string to add.public final void addStrings(Collection<String> strings)
strings - the collection of strings to be added.public final void addStrings(String... strings)
strings - The strings to add.public final List<String> getStrings()
public boolean accept(Class<?> clazz)
clazz - the class to accept.public String toString()
toString in class AbstractBaseClassFilterCopyright © 2013-2016 XENEI.com. All Rights Reserved.