Class ImmutableMavenDependency
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
io.github.ascopes.protobufmavenplugin.dependencies.MavenDependency
io.github.ascopes.protobufmavenplugin.dependencies.ImmutableMavenDependency
@Generated(from="MavenDependency",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableMavenDependency
extends MavenDependency
Immutable implementation of
MavenDependency.
Use the builder to create immutable instances:
ImmutableMavenDependency.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableMavenDependency. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableMavenDependency.booleanThis instance is equal to all instances ofImmutableMavenDependencythat have equal attribute values.@Nullable String@Nullable String@Nullable DependencyResolutionDepth@Nullable String@Nullable StringgetType()@Nullable StringinthashCode()Computes a hash code from attributes:groupId,artifactId,version,type,classifier,dependencyResolutionDepth,exclusions.Methods inherited from class MavenDependency
toString
-
Method Details
-
getGroupId
- Specified by:
getGroupIdin classMavenArtifact- Returns:
- The value of the
groupIdattribute
-
getArtifactId
- Specified by:
getArtifactIdin classMavenArtifact- Returns:
- The value of the
artifactIdattribute
-
getVersion
- Specified by:
getVersionin classMavenArtifact- Returns:
- The value of the
versionattribute
-
getType
- Specified by:
getTypein classMavenArtifact- Returns:
- The value of the
typeattribute
-
getClassifier
- Specified by:
getClassifierin classMavenArtifact- Returns:
- The value of the
classifierattribute
-
getDependencyResolutionDepth
- Specified by:
getDependencyResolutionDepthin classMavenDependency- Returns:
- The value of the
dependencyResolutionDepthattribute
-
getExclusions
- Specified by:
getExclusionsin classMavenDependency- Returns:
- The value of the
exclusionsattribute
-
equals
-
hashCode
-
builder
Creates a builder forImmutableMavenDependency.ImmutableMavenDependency.builder() .groupId(String | null) // nullable
groupId.artifactId(String | null) // nullableartifactId.version(String | null) // nullableversion.type(String | null) // nullabletype.classifier(String | null) // nullableclassifier.dependencyResolutionDepth(io.github.ascopes.protobufmavenplugin.dependencies.DependencyResolutionDepth | null) // nullabledependencyResolutionDepth.addExclusions|addAllExclusions(MavenExclusionBean) //exclusionselements .build();- Returns:
- A new ImmutableMavenDependency builder
-