Record Class ManagedDependency
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.spi.ManagedDependency
- Record Components:
group- the Maven groupname- the Maven artifact namepinnedVersion- the version added when the project declares noneuntestedFrom- the lowest version this emitter has not been tested with, such as4;nullwhen there is none
public record ManagedDependency(String group, String name, String pinnedVersion, String untestedFrom)
extends Record
A library generated code needs.
When the project does not declare it, the plugin adds it at pinnedVersion,
the version this emitter was tested with. When the project declares it, the
project's version wins, and a version at or above untestedFrom is
reported as not tested with this emitter.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedDependency(String group, String name, String pinnedVersion, String untestedFrom) Creates an instance of aManagedDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepinnedVersionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuntestedFromrecord component.
-
Constructor Details
-
ManagedDependency
Creates an instance of aManagedDependencyrecord class.- Parameters:
group- the value for thegrouprecord componentname- the value for thenamerecord componentpinnedVersion- the value for thepinnedVersionrecord componentuntestedFrom- the value for theuntestedFromrecord 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). -
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
-
pinnedVersion
Returns the value of thepinnedVersionrecord component.- Returns:
- the value of the
pinnedVersionrecord component
-
untestedFrom
Returns the value of theuntestedFromrecord component.- Returns:
- the value of the
untestedFromrecord component
-