public class Artifacts extends ArrayList<org.apache.maven.artifact.Artifact>
Artifact
s.modCount
Constructor and Description |
---|
Artifacts() |
Artifacts(Collection<? extends org.apache.maven.artifact.Artifact> c) |
Modifier and Type | Method and Description |
---|---|
Artifacts |
artifactIdIs(String... artifactId) |
Artifacts |
artifactIdIsNot(String... artifactId) |
Artifacts |
groupIdIs(String... groupId) |
Artifacts |
groupIdIsNot(String... groupId) |
static Artifacts |
of(org.apache.maven.project.MavenProject p)
Return the
Artifact s representing dependencies of the given project. |
static Artifacts |
ofDirectDependencies(org.apache.maven.project.MavenProject p) |
Artifacts |
removeAll(com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> filter) |
Artifacts |
retainAll(com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> filter) |
Artifacts |
scopeIs(String... scopes) |
Artifacts |
scopeIsNot(String... scopes) |
Artifacts |
typeIs(String... type) |
Artifacts |
typeIsNot(String... type) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public Artifacts()
public Artifacts(Collection<? extends org.apache.maven.artifact.Artifact> c)
public static Artifacts of(org.apache.maven.project.MavenProject p)
Artifact
s representing dependencies of the given project.
A thin-wrapper of p.getArtifacts()public static Artifacts ofDirectDependencies(org.apache.maven.project.MavenProject p)
public Artifacts retainAll(com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> filter)
public Artifacts removeAll(com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> filter)
Copyright © 2014. All rights reserved.