Package br.org.soujava.pomeditor.api
Class Dependency.DependencyBuilder
- java.lang.Object
-
- br.org.soujava.pomeditor.api.Dependency.DependencyBuilder
-
- Enclosing class:
- Dependency
public static class Dependency.DependencyBuilder extends Object
Dependency builder
-
-
Constructor Summary
Constructors Constructor Description DependencyBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dependency
build()
Dependency.DependencyBuilder
withArtifactId(String artifactId)
Dependency.DependencyBuilder
withClassifier(String classifier)
Dependency.DependencyBuilder
withGroupId(String groupId)
Dependency.DependencyBuilder
withScope(String scope)
Dependency.DependencyBuilder
withType(String type)
Dependency.DependencyBuilder
withVersion(String version)
-
-
-
Method Detail
-
withGroupId
public Dependency.DependencyBuilder withGroupId(String groupId)
- Parameters:
groupId
- groupId- Returns:
- the same
Dependency.DependencyBuilder
instance
-
withArtifactId
public Dependency.DependencyBuilder withArtifactId(String artifactId)
- Parameters:
artifactId
- artifactId- Returns:
- the same
Dependency.DependencyBuilder
instance
-
withVersion
public Dependency.DependencyBuilder withVersion(String version)
- Parameters:
version
- version- Returns:
- the same
Dependency.DependencyBuilder
instance
-
withType
public Dependency.DependencyBuilder withType(String type)
- Parameters:
type
- type- Returns:
- the same
Dependency.DependencyBuilder
instance
-
withClassifier
public Dependency.DependencyBuilder withClassifier(String classifier)
- Parameters:
classifier
- classifier- Returns:
- the same
Dependency.DependencyBuilder
instance
-
withScope
public Dependency.DependencyBuilder withScope(String scope)
- Parameters:
scope
- scope- Returns:
- the same
Dependency.DependencyBuilder
instance
-
build
public Dependency build()
- Returns:
- a
Dependency
instance
-
-