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 class
Dependency.Exclusion
A dependency exclusion.
Constructor Summary
Constructors Constructor Description Dependency(String groupId, String artifactId, String version)
Create a newDependency
instance.Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions)
Create a newDependency
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Constructor Detail
Dependency
public Dependency(String groupId, String artifactId, String version)
Create a newDependency
instance.- 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 newDependency
instance.- 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