public class Dependencies
extends java.lang.Object
Dependency objects. Rather than using a List this object allows
operations like contains(Dependency) that work reliably even though Dependency class does not
properly implement equals.| Constructor and Description |
|---|
Dependencies()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.maven.model.Dependency dependency) |
void |
addAll(java.util.List<org.apache.maven.model.Dependency> dependencies) |
boolean |
contains(org.apache.maven.model.Dependency dependency) |
protected java.lang.String |
getKey(org.apache.maven.model.Dependency dependency) |
java.util.List<org.apache.maven.model.Dependency> |
toList() |
protected java.lang.String getKey(org.apache.maven.model.Dependency dependency)
dependency - is the Dependency to put or get
.key for the Dependency.public void addAll(java.util.List<org.apache.maven.model.Dependency> dependencies)
dependencies - the List of Dependency objects to add.public void add(org.apache.maven.model.Dependency dependency)
dependency - the Dependency to add.public boolean contains(org.apache.maven.model.Dependency dependency)
dependency - the Dependency to test.true if the given Dependency is contained in these Dependencies,
false otherwise.public java.util.List<org.apache.maven.model.Dependency> toList()
List with the Dependency objects contained in these Dependencies.Copyright © 2014-2020 FuseSource, Corp.. All Rights Reserved.