public abstract class BasePackageFilter extends Object implements com.google.common.base.Predicate<String>
Modifier and Type | Field and Description |
---|---|
protected Collection<String> |
filters |
Constructor and Description |
---|
BasePackageFilter(Collection<String> filters) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
apply(String input) |
boolean |
matches(String input) |
protected abstract Collection<String> |
processFilters(Collection<String> filters)
In
apply(String) , filters ending with '*' are compared to inputs with String.startsWith(String)
and other patterns are matched with String.equals(Object) . |
protected final Collection<String> filters
public BasePackageFilter(Collection<String> filters)
protected abstract Collection<String> processFilters(Collection<String> filters)
apply(String)
, filters ending with '*' are compared to inputs with String.startsWith(String)
and other patterns are matched with String.equals(Object)
. This method gives subclasses a chance to modify
filters before any matching is done (for example to convert java packages to paths).public abstract boolean apply(String input)
apply
in interface com.google.common.base.Predicate<String>
public boolean matches(String input)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.