public class PrefixClassFilter extends AbstractStringClassFilter implements Serializable
ClassFilter.UtilcaseSensitivityNO_ARGSABSTRACT, ANNOTATION, FALSE, INTERFACE, 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.
|
accept, addString, addStrings, addStrings, args, getStrings, toStringfilter, filterNames, 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 Stringspublic boolean accept(String className)
accept in interface ClassFilterclassName - the class name to check.Copyright © 2013-2016 XENEI.com. All Rights Reserved.