Class ImmutableMavenDependency
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.ImmutableMavenDependency
- All Implemented Interfaces:
MavenArtifact
,MavenDependency
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableMavenDependency
extends Object
implements MavenDependency
Immutable implementation of
MavenDependency
.
Use the builder to create immutable instances:
ImmutableMavenDependency.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableMavenDependency
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableMavenDependency
.boolean
This instance is equal to all instances ofImmutableMavenDependency
that have equal attribute values.@Nullable String
@Nullable DependencyResolutionDepth
@Nullable String
getType()
int
hashCode()
Computes a hash code from attributes:groupId
,artifactId
,version
,type
,classifier
,dependencyResolutionDepth
.toString()
Prints the immutable valueMavenDependency
with attribute values.
-
Method Details
-
getGroupId
- Specified by:
getGroupId
in interfaceMavenArtifact
- Returns:
- The value of the
groupId
attribute
-
getArtifactId
- Specified by:
getArtifactId
in interfaceMavenArtifact
- Returns:
- The value of the
artifactId
attribute
-
getVersion
- Specified by:
getVersion
in interfaceMavenArtifact
- Returns:
- The value of the
version
attribute
-
getType
- Specified by:
getType
in interfaceMavenArtifact
- Returns:
- The value of the
type
attribute
-
getClassifier
- Specified by:
getClassifier
in interfaceMavenArtifact
- Returns:
- The value of the
classifier
attribute
-
getDependencyResolutionDepth
- Specified by:
getDependencyResolutionDepth
in interfaceMavenArtifact
- Returns:
- The value of the
dependencyResolutionDepth
attribute
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableMavenDependency
.ImmutableMavenDependency.builder() .groupId(String | null) // nullable
groupId
.artifactId(String | null) // nullableartifactId
.version(String | null) // nullableversion
.type(@org.jspecify.annotations.Nullable String | null) // nullabletype
.classifier(@org.jspecify.annotations.Nullable String | null) // nullableclassifier
.dependencyResolutionDepth(io.github.ascopes.protobufmavenplugin.dependencies.@org.jspecify.annotations.Nullable DependencyResolutionDepth | null) // nullabledependencyResolutionDepth
.build();- Returns:
- A new ImmutableMavenDependency builder
-