public class Artifacts extends ArrayList<Artifact>
Artifact
s. This class is not thread-safe.modCount
Constructor and Description |
---|
Artifacts() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Artifact artifact)
Add an artifact.
|
boolean |
containsExact(ArtifactId id)
Checks whether the exact artifact is available
|
boolean |
containsSame(ArtifactId id)
Checks whether the same artifact is available, neglecting the version
|
Artifact |
getSame(ArtifactId id)
Get the artifact for the given id, neglecting the version
|
boolean |
removeExact(ArtifactId id)
Remove the exact artifact.
|
boolean |
removeSame(ArtifactId id)
Remove the same artifact, neglecting the version.
|
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 boolean add(Artifact artifact)
public boolean removeExact(ArtifactId id)
id
- The artifact idtrue
if the artifact has been removedpublic boolean removeSame(ArtifactId id)
id
- The artifact idtrue
if the artifact has been removedpublic Artifact getSame(ArtifactId id)
id
- The artifact idnull
otherwisepublic boolean containsExact(ArtifactId id)
id
- The artifact id.true
if the artifact existspublic boolean containsSame(ArtifactId id)
id
- The artifact id.true
if the artifact existsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.