Package io.micronaut.gradle.internal
Record Class ConfigurableVersionProperty
java.lang.Object
java.lang.Record
io.micronaut.gradle.internal.ConfigurableVersionProperty
- Record Components:
name
- the simple name of the propertydslName
- the name in the DSLgradlePropertyName
- 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 Summary
ConstructorDescriptionConfigurableVersionProperty
(String name, String dslName, String gradlePropertyName, String platformCatalogName) Creates an instance of aConfigurableVersionProperty
record class. -
Method Summary
Modifier and TypeMethodDescriptiondslName()
Returns the value of thedslName
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegradlePropertyName
record component.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.static ConfigurableVersionProperty
Returns the value of theplatformCatalogName
record component.final String
toString()
Returns a string representation of this record class.withPlatformCatalogName
(String platformCatalogName)
-
Constructor Details
-
ConfigurableVersionProperty
public ConfigurableVersionProperty(String name, String dslName, String gradlePropertyName, String platformCatalogName) Creates an instance of aConfigurableVersionProperty
record class.- Parameters:
name
- the value for thename
record componentdslName
- the value for thedslName
record componentgradlePropertyName
- the value for thegradlePropertyName
record componentplatformCatalogName
- the value for theplatformCatalogName
record component
-
-
Method Details
-
of
-
withPlatformCatalogName
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
dslName
Returns the value of thedslName
record component.- Returns:
- the value of the
dslName
record component
-
gradlePropertyName
Returns the value of thegradlePropertyName
record component.- Returns:
- the value of the
gradlePropertyName
record component
-
platformCatalogName
Returns the value of theplatformCatalogName
record component.- Returns:
- the value of the
platformCatalogName
record component
-