Package io.micronaut.gradle.catalog
Record Class VersionModel
java.lang.Object
java.lang.Record
io.micronaut.gradle.catalog.VersionModel
public record VersionModel(@Nullable String reference, @Nullable RichVersion version, org.tomlj.TomlPosition position)
extends Record
-
Constructor Summary
ConstructorDescriptionVersionModel
(String reference, RichVersion version, org.tomlj.TomlPosition position) Creates an instance of aVersionModel
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.org.tomlj.TomlPosition
position()
Returns the value of theposition
record component.Returns the value of thereference
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
VersionModel
public VersionModel(@Nullable String reference, @Nullable RichVersion version, org.tomlj.TomlPosition position) Creates an instance of aVersionModel
record class.- Parameters:
reference
- the value for thereference
record componentversion
- the value for theversion
record componentposition
- the value for theposition
record component
-
-
Method Details
-
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)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
reference
Returns the value of thereference
record component.- Returns:
- the value of the
reference
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
position
public org.tomlj.TomlPosition position()Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-