public class Artifacts extends ArrayList<Artifact>
Artifacts. 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 |
getExact(ArtifactId id)
Get the artifact for the given id
|
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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic 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 Artifact getExact(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–2020 The Apache Software Foundation. All rights reserved.