Package org.apache.xbean.finder.filter
Class Filters
- java.lang.Object
-
- org.apache.xbean.finder.filter.Filters
-
public class Filters extends java.lang.Object
- Version:
- $Rev$ $Date$
-
-
Constructor Summary
Constructors Constructor Description Filters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Filter
classes(java.lang.String... classes)
static Filter
invert(Filter filter)
Will invert the meaning of this filter by wrapping it with a filter that negates the return of the accept method.static Filter
optimize(java.util.List<Filter>... filterss)
static Filter
optimize(Filter... filters)
static Filter
packages(java.lang.String... packages)
static Filter
patterns(java.lang.String... patterns)
static Filter
prefixes(java.lang.String... prefixes)
static Filter
suffixes(java.lang.String... suffixes)
static Filter
tokens(java.lang.String... tokens)
-
-
-
Constructor Detail
-
Filters
public Filters()
-
-
Method Detail
-
invert
public static Filter invert(Filter filter)
Will invert the meaning of this filter by wrapping it with a filter that negates the return of the accept method. If the passed in filter is already wrapped, it will be unwrapped and returned. This is to prevent endless wrapping if the invert method is called many times.- Parameters:
filter
-- Returns:
-
-