Record Class AppliedPluginCollector.DeclaredPlugin
java.lang.Object
java.lang.Record
io.github.duckasteroid.agentdocs.resolve.task.AppliedPluginCollector.DeclaredPlugin
- Record Components:
coordinate- the plugin's identityjarPath- the plugin's own resolved jar (from its classloader's code source)declaration- the plugin jar'sAgent-Docsdeclaration
- Enclosing class:
AppliedPluginCollector
public static record AppliedPluginCollector.DeclaredPlugin(GradlePluginCoordinate coordinate, Path jarPath, AgentDocsDeclaration declaration)
extends Record
Discovered
Agent-Docs-aware Gradle plugin, analogous to a declared dependency.-
Constructor Summary
ConstructorsConstructorDescriptionDeclaredPlugin(GradlePluginCoordinate coordinate, Path jarPath, AgentDocsDeclaration declaration) Creates an instance of aDeclaredPluginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoordinaterecord component.Returns the value of thedeclarationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jarPath()Returns the value of thejarPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeclaredPlugin
public DeclaredPlugin(GradlePluginCoordinate coordinate, Path jarPath, AgentDocsDeclaration declaration) Creates an instance of aDeclaredPluginrecord class.- Parameters:
coordinate- the value for thecoordinaterecord componentjarPath- the value for thejarPathrecord componentdeclaration- the value for thedeclarationrecord component
-
-
Method Details
-
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). -
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
jarPath
Returns the value of thejarPathrecord component.- Returns:
- the value of the
jarPathrecord component
-
declaration
Returns the value of thedeclarationrecord component.- Returns:
- the value of the
declarationrecord component
-