Class ImmutableMavenExclusion

java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.ImmutableMavenExclusion
All Implemented Interfaces:
MavenExclusion

@Generated(from="MavenExclusion", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableMavenExclusion extends Object implements MavenExclusion
Immutable implementation of MavenExclusion.

Use the builder to create immutable instances: ImmutableMavenExclusion.builder().

  • Method Details

    • getGroupId

      public @Nullable String getGroupId()
      Specified by:
      getGroupId in interface MavenExclusion
      Returns:
      The value of the groupId attribute
    • getArtifactId

      public @Nullable String getArtifactId()
      Specified by:
      getArtifactId in interface MavenExclusion
      Returns:
      The value of the artifactId attribute
    • getClassifier

      public String getClassifier()
      Specified by:
      getClassifier in interface MavenExclusion
      Returns:
      The value of the classifier attribute
    • getType

      public String getType()
      Specified by:
      getType in interface MavenExclusion
      Returns:
      The value of the type attribute
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableMavenExclusion that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: groupId, artifactId, classifier, type.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value MavenExclusion with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • builder

      public static ImmutableMavenExclusion.Builder builder()
      Creates a builder for ImmutableMavenExclusion.
      ImmutableMavenExclusion.builder()
         .groupId(String | null) // nullable groupId
         .artifactId(String | null) // nullable artifactId
         .classifier(String) // optional classifier
         .type(String) // optional type
         .build();
      
      Returns:
      A new ImmutableMavenExclusion builder