Class FilterHelper
java.lang.Object
org.apache.ivy.util.filter.FilterHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Collection<T> filter(Collection<T> col, Filter<T> filter) getArtifactTypeFilter(String types) getArtifactTypeFilter(String[] types)
-
Field Details
-
NO_FILTER
-
-
Method Details
-
getArtifactTypeFilter
-
getArtifactTypeFilter
-
filter
- Type Parameters:
T- The type parameter- Parameters:
col- The collection to filter.filter- The filter to use.- Returns:
- a new collection instance containing the only the the items from the given
collection, which are accepted by the filter.
Comment: We could have used Commons Collections facility for this, if we accepted additional dependencies on third party jars.
-