Record Class Plugin
java.lang.Object
java.lang.Record
io.micronaut.build.catalogs.internal.Plugin
public record Plugin(String alias, String id, VersionModel version, org.tomlj.TomlPosition position)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlugin(String alias, String id, VersionModel version, org.tomlj.TomlPosition position) Creates an instance of aPluginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord 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
-
Plugin
Creates an instance of aPluginrecord class.- Parameters:
alias- the value for thealiasrecord componentid- the value for theidrecord 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
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
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
-