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