Record Class ConfigurableVersionProperty

java.lang.Object
java.lang.Record
io.micronaut.gradle.internal.ConfigurableVersionProperty
Record Components:
name - the simple name of the property
dslName - the name in the DSL
gradlePropertyName - the name of the gradle property

public record ConfigurableVersionProperty(String name, String dslName, String gradlePropertyName, String platformCatalogName) extends Record
A configurable version property is a property which is found in the DSL, as a type-safe accessor, allowing to override a particular version of a dependency which is automatically added by the Gradle plugin.
  • Constructor Details

    • ConfigurableVersionProperty

      public ConfigurableVersionProperty(String name, String dslName, String gradlePropertyName, String platformCatalogName)
      Creates an instance of a ConfigurableVersionProperty record class.
      Parameters:
      name - the value for the name record component
      dslName - the value for the dslName record component
      gradlePropertyName - the value for the gradlePropertyName record component
      platformCatalogName - the value for the platformCatalogName record component
  • Method Details

    • of

      public static ConfigurableVersionProperty of(String name)
    • withPlatformCatalogName

      public ConfigurableVersionProperty withPlatformCatalogName(String platformCatalogName)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • dslName

      public String dslName()
      Returns the value of the dslName record component.
      Returns:
      the value of the dslName record component
    • gradlePropertyName

      public String gradlePropertyName()
      Returns the value of the gradlePropertyName record component.
      Returns:
      the value of the gradlePropertyName record component
    • platformCatalogName

      public String platformCatalogName()
      Returns the value of the platformCatalogName record component.
      Returns:
      the value of the platformCatalogName record component