Package org.codehaus.mojo.flatten
Class Dependencies
java.lang.Object
org.codehaus.mojo.flatten.Dependencies
This is a simple container for
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.- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Dependency dependency) voidaddAll(List<Dependency> dependencies) booleancontains(Dependency dependency) protected StringgetKey(Dependency dependency) resolve(Dependency dependency) toList()
-
Constructor Details
-
Dependencies
public Dependencies()The constructor.
-
-
Method Details
-
getKey
- Parameters:
dependency- is theDependencytoputorget.- Returns:
- the
keyfor theDependency.
-
addAll
- Parameters:
dependencies- theListofDependencyobjects toadd.
-
add
- Parameters:
dependency- theDependencyto add.
-
contains
- Parameters:
dependency- theDependencyto test.- Returns:
trueif the givenDependencyis contained in theseDependencies,falseotherwise.
-
resolve
- Parameters:
dependency- theDependencyto resolve.- Returns:
- a full declared
Dependency
-
toList
- Returns:
- a
Listwith theDependencyobjects contained in theseDependencies.
-