Package br.org.soujava.pomeditor.api
Class Dependency
- java.lang.Object
-
- br.org.soujava.pomeditor.api.Dependency
-
public final class Dependency extends Object
Represents a dependency to be added
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dependency.DependencyBuilder
Dependency builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Dependency.DependencyBuilder
builder()
Returns aDependency.DependencyBuilder
instanceboolean
equals(Object o)
String
getArtifactId()
String
getClassifier()
String
getGroupId()
String
getScope()
String
getType()
String
getVersion()
int
hashCode()
static Dependency.DependencyBuilder
ofGav(String gav)
Returns aDependency.DependencyBuilder
based on a GAV - groupId:artifactId:version - parameterString
toString()
-
-
-
Method Detail
-
builder
public static Dependency.DependencyBuilder builder()
Returns aDependency.DependencyBuilder
instance- Returns:
- a
Dependency.DependencyBuilder
-
ofGav
public static Dependency.DependencyBuilder ofGav(String gav)
Returns aDependency.DependencyBuilder
based on a GAV - groupId:artifactId:version - parameter- Parameters:
gav
- a GAV - groupId:artifactId:version - parameter- Returns:
- a
Dependency.DependencyBuilder
-
getGroupId
public String getGroupId()
- Returns:
- the groupId
-
getArtifactId
public String getArtifactId()
- Returns:
- artifactId
-
getVersion
public String getVersion()
- Returns:
- version
-
getType
public String getType()
- Returns:
- type
-
getClassifier
public String getClassifier()
- Returns:
- classifier
-
getScope
public String getScope()
- Returns:
- scope
-
-