| Constructor and Description |
|---|
Bundles() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Artifact bundle)
Add an artifact as a bundle.
|
void |
clear()
Clear the bundles list.
|
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
|
Map<Integer,List<Artifact>> |
getBundlesByStartOrder()
Get the map of all bundles sorted by start order.
|
Artifact |
getSame(ArtifactId id)
Get the artifact for the given id, neglecting the version
|
boolean |
isEmpty()
Check whether this container has bundles
|
Iterator<Artifact> |
iterator()
Iterate over all bundles
|
boolean |
removeExact(ArtifactId id)
Remove the exact artifact.
|
boolean |
removeSame(ArtifactId id)
Remove the same artifact, neglecting the version.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Map<Integer,List<Artifact>> getBundlesByStartOrder()
public void add(Artifact bundle)
bundle - The bundlepublic 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 void clear()
public 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 existspublic boolean isEmpty()
true if there are no bundles.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.