Class Dependency
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.Dependency
public final class Dependency extends Object
A single dependency.- Since:
- 1.3.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDependency.ExclusionA dependency exclusion.
Constructor Summary
Constructors Constructor Description Dependency(String groupId, String artifactId, String version)Create a newDependencyinstance.Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions)Create a newDependencyinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetArtifactId()Return the dependency artifact id.List<Dependency.Exclusion>getExclusions()Return the dependency exclusions.StringgetGroupId()Return the dependency group id.StringgetVersion()Return the dependency version.inthashCode()StringtoString()
Constructor Detail
Dependency
public Dependency(String groupId, String artifactId, String version)
Create a newDependencyinstance.- Parameters:
groupId- the group IDartifactId- the artifact IDversion- the version
Dependency
public Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions)
Create a newDependencyinstance.- Parameters:
groupId- the group IDartifactId- the artifact IDversion- the versionexclusions- the exclusions
Method Detail
getGroupId
public String getGroupId()
Return the dependency group id.- Returns:
- the group ID
getArtifactId
public String getArtifactId()
Return the dependency artifact id.- Returns:
- the artifact ID
getVersion
public String getVersion()
Return the dependency version.- Returns:
- the version
getExclusions
public List<Dependency.Exclusion> getExclusions()
Return the dependency exclusions.- Returns:
- the exclusions