Class BinaryMavenProtocDistributionBean

All Implemented Interfaces:
ProtocDistribution

@Generated(from="BinaryMavenProtocDistribution", generator="Modifiables") @Generated({"Modifiables.generator","BinaryMavenProtocDistribution"}) public class BinaryMavenProtocDistributionBean extends BinaryMavenProtocDistribution
A modifiable implementation of the BinaryMavenProtocDistribution type.

Use the constructor to create new modifiable instances. You may even extend this class to add some convenience methods, however most of the methods in this class are final to preserve safety and predictable invariants.

BinaryMavenProtocDistributionBean is not thread-safe

See Also:
  • Constructor Details

    • BinaryMavenProtocDistributionBean

      public BinaryMavenProtocDistributionBean()
  • Method Details

    • getClassifier

      public @Nullable String getClassifier()
      Specified by:
      getClassifier in class MavenArtifact
      Returns:
      value of classifier attribute, may be null
    • getGroupId

      public String getGroupId()
      Overrides:
      getGroupId in class BinaryMavenProtocDistribution
      Returns:
      assigned or, otherwise, newly computed, not cached value of groupId attribute
    • getArtifactId

      public String getArtifactId()
      Overrides:
      getArtifactId in class BinaryMavenProtocDistribution
      Returns:
      assigned or, otherwise, newly computed, not cached value of artifactId attribute
    • getVersion

      public @NonNull String getVersion()
      Specified by:
      getVersion in class BinaryMavenProtocDistribution
      Returns:
      value of version attribute, may be null
    • getType

      public String getType()
      Overrides:
      getType in class BinaryMavenProtocDistribution
      Returns:
      assigned or, otherwise, newly computed, not cached value of type attribute
    • clear

      public void clear()
      Clears the object by setting all attributes to their initial values.
    • from

      Fill this modifiable instance with attribute values from the provided MavenArtifact instance.
      Parameters:
      instance - The instance from which to copy values
    • from

      Fill this modifiable instance with attribute values from the provided BinaryMavenProtocDistribution instance.
      Parameters:
      instance - The instance from which to copy values
    • from

      Fill this modifiable instance with attribute values from the provided BinaryMavenProtocDistribution instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this for use in a chained invocation
    • setClassifier

      public void setClassifier(@Nullable String classifier)
      Assigns a value to the classifier attribute.
      Parameters:
      classifier - The value for classifier, can be null
    • setGroupId

      public void setGroupId(String groupId)
      Assigns a value to the groupId attribute.

      If not set, this attribute will have a default value returned by the initializer of groupId.

      Parameters:
      groupId - The value for groupId
    • setArtifactId

      public void setArtifactId(String artifactId)
      Assigns a value to the artifactId attribute.

      If not set, this attribute will have a default value returned by the initializer of artifactId.

      Parameters:
      artifactId - The value for artifactId
    • setVersion

      public void setVersion(@NonNull String version)
      Assigns a value to the version attribute.
      Parameters:
      version - The value for version, can be null
    • setType

      public void setType(String type)
      Assigns a value to the type attribute.

      If not set, this attribute will have a default value returned by the initializer of type.

      Parameters:
      type - The value for type
    • versionIsSet

      public final boolean versionIsSet()
      Returns true if the required attribute version is set.
      Returns:
      true if set
    • groupIdIsSet

      public final boolean groupIdIsSet()
      Returns true if the default attribute groupId is set.
      Returns:
      true if set
    • artifactIdIsSet

      public final boolean artifactIdIsSet()
      Returns true if the default attribute artifactId is set.
      Returns:
      true if set
    • typeIsSet

      public final boolean typeIsSet()
      Returns true if the default attribute type is set.
      Returns:
      true if set
    • unsetVersion

      public final void unsetVersion()
      Reset an attribute to its initial value.
    • unsetGroupId

      public final void unsetGroupId()
      Reset an attribute to its initial value.
    • unsetArtifactId

      public final void unsetArtifactId()
      Reset an attribute to its initial value.
    • unsetType

      public final void unsetType()
      Reset an attribute to its initial value.
    • isInitialized

      public final boolean isInitialized()
      Returns true if all required attributes are set, indicating that the object is initialized.
      Returns:
      true if set
    • toImmutable

      public final ImmutableBinaryMavenProtocDistribution toImmutable()
      Returns:
      An immutable instance of BinaryMavenProtocDistribution
    • equals

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

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