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 TypeMethodDescriptionvoid
add
(Dependency dependency) void
addAll
(List<Dependency> dependencies) boolean
contains
(Dependency dependency) protected String
getKey
(Dependency dependency) resolve
(Dependency dependency) toList()
-
Constructor Details
-
Dependencies
public Dependencies()The constructor.
-
-
Method Details
-
getKey
- Parameters:
dependency
- is theDependency
toput
orget
.- Returns:
- the
key
for theDependency
.
-
addAll
- Parameters:
dependencies
- theList
ofDependency
objects toadd
.
-
add
- Parameters:
dependency
- theDependency
to add.
-
contains
- Parameters:
dependency
- theDependency
to test.- Returns:
true
if the givenDependency
is contained in theseDependencies
,false
otherwise.
-
resolve
- Parameters:
dependency
- theDependency
to resolve.- Returns:
- a full declared
Dependency
-
toList
- Returns:
- a
List
with theDependency
objects contained in theseDependencies
.
-