类 Dependency
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.Dependency
public final class Dependency extends Object
A single dependency.- 从以下版本开始:
- 1.3.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classDependency.ExclusionA dependency exclusion.
构造器概要
构造器 构造器 说明 Dependency(String groupId, String artifactId, String version)Create a newDependencyinstance.Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions)Create a newDependencyinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
构造器详细资料
Dependency
public Dependency(String groupId, String artifactId, String version)
Create a newDependencyinstance.- 参数:
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.- 参数:
groupId- the group IDartifactId- the artifact IDversion- the versionexclusions- the exclusions
方法详细资料
getGroupId
public String getGroupId()
Return the dependency group id.- 返回:
- the group ID
getArtifactId
public String getArtifactId()
Return the dependency artifact id.- 返回:
- the artifact ID
getVersion
public String getVersion()
Return the dependency version.- 返回:
- the version
getExclusions
public List<Dependency.Exclusion> getExclusions()
Return the dependency exclusions.- 返回:
- the exclusions