类 Dependency
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.Dependency
public final class Dependency extends Object
A single dependency.- 从以下版本开始:
- 1.3.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
Dependency.Exclusion
A dependency exclusion.
构造器概要
构造器 构造器 说明 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.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
构造器详细资料
Dependency
public Dependency(String groupId, String artifactId, String version)
Create a newDependency
instance.- 参数:
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.- 参数:
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