Package io.micronaut.gradle.catalog
Record Class Library
java.lang.Object
java.lang.Record
io.micronaut.gradle.catalog.Library
public record Library(String alias, String group, String name, VersionModel version, org.tomlj.TomlPosition position)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLibrary(String alias, String group, String name, VersionModel version, org.tomlj.TomlPosition position) Creates an instance of aLibraryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.org.tomlj.TomlPositionposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Library
public Library(String alias, String group, String name, VersionModel version, org.tomlj.TomlPosition position) Creates an instance of aLibraryrecord class.- Parameters:
alias- the value for thealiasrecord componentgroup- the value for thegrouprecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentposition- the value for thepositionrecord component
-
-
Method Details
-
getModule
-
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. -
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord 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
-