public final class Dependency extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Dependency.Exclusion
A dependency exclusion.
|
Constructor and Description |
---|
Dependency(String groupId,
String artifactId,
String version)
Create a new
Dependency instance. |
Dependency(String groupId,
String artifactId,
String version,
List<Dependency.Exclusion> exclusions)
Create a new
Dependency instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getArtifactId()
Return the dependency artifact id.
|
List<Dependency.Exclusion> |
getExclusions()
Return the dependency exclusions.
|
String |
getGroupId()
Return the dependency group id.
|
String |
getVersion()
Return the dependency version.
|
int |
hashCode() |
String |
toString() |
public Dependency(String groupId, String artifactId, String version)
Dependency
instance.groupId
- the group IDartifactId
- the artifact IDversion
- the versionpublic Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions)
Dependency
instance.groupId
- the group IDartifactId
- the artifact IDversion
- the versionexclusions
- the exclusionspublic String getGroupId()
public String getArtifactId()
public String getVersion()
public List<Dependency.Exclusion> getExclusions()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.