public static class ClassPathFilter.Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(ClassPathFilter cpf1,
ClassPathFilter cpf2) |
static Collection<Class<?>> |
filterClasses(Collection<Class<?>> classes,
ClassPathFilter filter)
filter a collection of classes with the filter.
|
static Collection<String> |
filterNames(Collection<String> classNames,
ClassPathFilter filter)
filter a collection of class names with the filter.
|
static Collection<URL> |
filterURLs(Collection<URL> urls,
ClassPathFilter filter)
filter a collection of classes with the filter.
|
static int |
hashCode(ClassPathFilter cpf) |
static String |
parseArgs(String str,
int pos)
Parse the arguments for a filter.
|
static String |
toString(ClassPathFilter filter)
Convert a ClassFilter to a string in a way that the Parser.parse()
can parse it.
|
public static Collection<URL> filterURLs(Collection<URL> urls, ClassPathFilter filter)
urls - The collection of classes to filter.filter - The filter to apply.public static Collection<String> filterNames(Collection<String> classNames, ClassPathFilter filter)
classNames - The collection of class names to filter.filter - The filter to apply.public static Collection<Class<?>> filterClasses(Collection<Class<?>> classes, ClassPathFilter filter)
classes - The collection of classes to filter.filter - The filter to apply.public static String toString(ClassPathFilter filter)
filter - The filter to create the string for.public static boolean equals(ClassPathFilter cpf1, ClassPathFilter cpf2)
public static int hashCode(ClassPathFilter cpf)
public static String parseArgs(String str, int pos)
str - The string to parse.pos - the offset within the string of the opening paren '(' for
the arguments.IllegalArgumentException - if the string can not be parsed.Copyright © 2013-2017 XENEI.com. All Rights Reserved.