Record Class ManagedDependency

java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.spi.ManagedDependency
Record Components:
group - the Maven group
name - the Maven artifact name
pinnedVersion - the version added when the project declares none
untestedFrom - the lowest version this emitter has not been tested with, such as 4; null when 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 Details

    • ManagedDependency

      public ManagedDependency(String group, String name, String pinnedVersion, String untestedFrom)
      Creates an instance of a ManagedDependency record class.
      Parameters:
      group - the value for the group record component
      name - the value for the name record component
      pinnedVersion - the value for the pinnedVersion record component
      untestedFrom - the value for the untestedFrom record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • pinnedVersion

      public String pinnedVersion()
      Returns the value of the pinnedVersion record component.
      Returns:
      the value of the pinnedVersion record component
    • untestedFrom

      public String untestedFrom()
      Returns the value of the untestedFrom record component.
      Returns:
      the value of the untestedFrom record component