public class Dependencies extends 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(List<org.apache.maven.model.Dependency> dependencies) |
boolean |
contains(org.apache.maven.model.Dependency dependency) |
protected String |
getKey(org.apache.maven.model.Dependency dependency) |
List<org.apache.maven.model.Dependency> |
toList() |
protected String getKey(org.apache.maven.model.Dependency dependency)
public void addAll(List<org.apache.maven.model.Dependency> dependencies)
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 List<org.apache.maven.model.Dependency> toList()
List with the Dependency objects contained in these Dependencies.Copyright © 2014–2015 MojoHaus. All rights reserved.