public class SuffixClassFilter extends _AbstractStringFilter implements Serializable
ClassPathFilter.UtilcaseSensitivityNO_ARGSABSTRACT_CLASS, ANNOTATION_CLASS, FALSE, INTERFACE_CLASS, 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.
|
protected org.apache.commons.logging.Log |
getLog() |
ClassPathFilter |
optimize() |
accept, accept, addString, addStrings, addStrings, args, getStrings, toStringequals, filterClasses, filterNames, filterURLs, funcName, hashCode, loadClassclone, finalize, getClass, notify, notifyAll, wait, wait, waitfilterClasses, filterNames, filterURLs, 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 nullprotected org.apache.commons.logging.Log getLog()
getLog in class _AbstractBaseFilterpublic boolean accept(String className)
accept in interface ClassPathFilterclassName - the class name to checkpublic ClassPathFilter optimize()
optimize in interface ClassPathFilterCopyright © 2013-2017 XENEI.com. All Rights Reserved.