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
ConstructorsConstructorDescriptionVersionModel(String reference, RichVersion version, org.tomlj.TomlPosition position) Creates an instance of aVersionModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.org.tomlj.TomlPositionposition()Returns the value of thepositionrecord component.Returns the value of thereferencerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
VersionModel
public VersionModel(@Nullable String reference, @Nullable RichVersion version, org.tomlj.TomlPosition position) Creates an instance of aVersionModelrecord class.- Parameters:
reference- the value for thereferencerecord componentversion- the value for theversionrecord componentposition- the value for thepositionrecord 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
-
toString
-
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
position
public org.tomlj.TomlPosition position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-