public class PrefixClassFilter extends _AbstractStringFilter implements Serializable
ClassPathFilter.UtilcaseSensitivityNO_ARGSABSTRACT_CLASS, ANNOTATION_CLASS, FALSE, INTERFACE_CLASS, TRUE| Constructor and Description |
|---|
PrefixClassFilter(Case caseSensitivity,
Collection<String> prefixes)
Constructs a new Prefix class filter for a collection of prefixes
specifying case-sensitivity.
|
PrefixClassFilter(Case caseSensitivity,
String... prefixes)
Constructs a new Prefix class filter for any of an array of prefixes
specifying case-sensitivity.
|
PrefixClassFilter(Case caseSensitivity,
String prefix)
Constructs a new Prefix class filter for a single prefix specifying
case-sensitivity.
|
PrefixClassFilter(List<String> prefixes)
Constructs a new Prefix class filter for a list of prefixes.
|
PrefixClassFilter(String... prefixes)
Constructs a new Prefix class filter for any of an array of prefixes.
|
PrefixClassFilter(String prefix)
Constructs a new Prefix class filter for a single prefix.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String className)
Checks to see if the filename starts with the prefix.
|
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 PrefixClassFilter(String prefix)
prefix - the prefix to allow, must not be nullIllegalArgumentException - if the prefix is nullpublic PrefixClassFilter(Case caseSensitivity, String prefix)
prefix - the prefix to allow, must not be nullcaseSensitivity - how to handle case sensitivity, null means case-sensitivepublic PrefixClassFilter(String... prefixes)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
prefixes - the prefixes to allow, must not be nullIllegalArgumentException - if the prefix array is nullpublic PrefixClassFilter(Case caseSensitivity, String... prefixes)
The array is cloned.
prefixes - the prefixes to allow, must not be nullcaseSensitivity - how to handle case sensitivity, null means case-sensitivepublic PrefixClassFilter(List<String> prefixes)
prefixes - the prefixes to allow, must not be nullIllegalArgumentException - if the prefix list is nullClassCastException - if the list does not contain Stringspublic PrefixClassFilter(Case caseSensitivity, Collection<String> prefixes)
prefixes - the prefixes to allow, must not be nullcaseSensitivity - how to handle case sensitivity, null means case-sensitiveIllegalArgumentException - if the prefix list is nullClassCastException - if the list does not contain Stringsprotected org.apache.commons.logging.Log getLog()
getLog in class _AbstractBaseFilterpublic boolean accept(String className)
accept in interface ClassPathFilterclassName - the class name to check.public ClassPathFilter optimize()
optimize in interface ClassPathFilterCopyright © 2013-2017 XENEI.com. All Rights Reserved.