public final class FilterHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Collection<T> |
filter(java.util.Collection<T> col,
Filter<T> filter) |
static Filter<Artifact> |
getArtifactTypeFilter(java.lang.String types) |
static Filter<Artifact> |
getArtifactTypeFilter(java.lang.String[] types) |
public static Filter<Artifact> getArtifactTypeFilter(java.lang.String[] types)
public static <T> java.util.Collection<T> filter(java.util.Collection<T> col, Filter<T> filter)
T
- The type parametercol
- The collection to filter.filter
- The filter to use.Comment: We could have used Commons Collections facility for this, if we accepted additional dependencies on third party jars.
Copyright ©2007-2022 The Apache Software Foundation, Licensed under Apache License, Version 2.0.