org.apache.ivy.util.filter
public final class FilterHelper extends Object
Field Summary | |
---|---|
static Filter | NO_FILTER |
Method Summary | |
---|---|
static Collection | filter(Collection col, Filter filter)
Returns a new collection containing only the items from the given collectoin, which are
accepted by the filter.
|
static Filter | getArtifactTypeFilter(String types) |
static Filter | getArtifactTypeFilter(String[] types) |
Parameters: col The collection to filter. filter The filter to use.
Returns: A new collection instance containing the only the instance accepted by the filter.
Comment: We could have used
Commons-Collections
facility for this. If we accepted to add dependencies on third party jars.