Constructor and Description |
---|
FilterArtifacts()
Created new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(ArtifactsFilter filter)
Appends the specified element to the end of this list.
|
void |
addFilter(int index,
ArtifactsFilter filter)
Inserts the specified element at the specified position in this list.
|
void |
clearFilters()
Removes all of the elements from this list.
|
Set<org.apache.maven.artifact.Artifact> |
filter(Set<org.apache.maven.artifact.Artifact> artifacts)
filter.
|
List<ArtifactsFilter> |
getFilters()
Getter for the field
filters . |
void |
setFilters(List<ArtifactsFilter> filters)
Setter for the field
filters . |
public void clearFilters()
public void addFilter(ArtifactsFilter filter)
filter
- element to be appended to this list.public void addFilter(int index, ArtifactsFilter filter)
index
- at which index the specified filter is to be inserted.filter
- the filter to be inserted.IndexOutOfBoundsException
- if index is out of range (index < 0 || index > size())
.public Set<org.apache.maven.artifact.Artifact> filter(Set<org.apache.maven.artifact.Artifact> artifacts) throws ArtifactFilterException
filter.
artifacts
- The Artifact
s to filter.ArtifactFilterException
- in case of a failure.public List<ArtifactsFilter> getFilters()
Getter for the field filters
.
public void setFilters(List<ArtifactsFilter> filters)
Setter for the field filters
.
filters
- The filters to set.Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.