Record Class DefaultModelBuilder.RgavCacheKey

java.lang.Object
java.lang.Record
org.apache.maven.impl.model.DefaultModelBuilder.RgavCacheKey
All Implemented Interfaces:
org.apache.maven.api.services.Request<org.apache.maven.api.Session>
Enclosing class:
DefaultModelBuilder

public static record DefaultModelBuilder.RgavCacheKey(org.apache.maven.api.Session session, org.apache.maven.api.services.RequestTrace trace, List<org.apache.maven.api.RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, String tag) extends Record implements org.apache.maven.api.services.Request<org.apache.maven.api.Session>
  • Constructor Summary

    Constructors
    Constructor
    Description
    RgavCacheKey(org.apache.maven.api.Session session, org.apache.maven.api.services.RequestTrace trace, List<org.apache.maven.api.RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, String tag)
    Creates an instance of a RgavCacheKey record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the artifactId record component.
    Returns the value of the classifier record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    org.apache.maven.api.Session
     
    org.apache.maven.api.services.RequestTrace
     
    Returns the value of the groupId record component.
    int
    Returns a hash code value for this object.
    List<org.apache.maven.api.RemoteRepository>
    Returns the value of the repositories record component.
    org.apache.maven.api.Session
    Returns the value of the session record component.
    tag()
    Returns the value of the tag record component.
    Returns a string representation of this record class.
    org.apache.maven.api.services.RequestTrace
    Returns the value of the trace record component.
    Returns the value of the version record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RgavCacheKey

      public RgavCacheKey(org.apache.maven.api.Session session, org.apache.maven.api.services.RequestTrace trace, List<org.apache.maven.api.RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, String tag)
      Creates an instance of a RgavCacheKey record class.
      Parameters:
      session - the value for the session record component
      trace - the value for the trace record component
      repositories - the value for the repositories record component
      groupId - the value for the groupId record component
      artifactId - the value for the artifactId record component
      version - the value for the version record component
      classifier - the value for the classifier record component
      tag - the value for the tag record component
  • Method Details

    • getSession

      @Nonnull public org.apache.maven.api.Session getSession()
      Specified by:
      getSession in interface org.apache.maven.api.services.Request<org.apache.maven.api.Session>
    • getTrace

      @Nullable public org.apache.maven.api.services.RequestTrace getTrace()
      Specified by:
      getTrace in interface org.apache.maven.api.services.Request<org.apache.maven.api.Session>
    • equals

      public 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 interface org.apache.maven.api.services.Request<org.apache.maven.api.Session>
      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.
    • 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.
      Specified by:
      hashCode in interface org.apache.maven.api.services.Request<org.apache.maven.api.Session>
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public 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 interface org.apache.maven.api.services.Request<org.apache.maven.api.Session>
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • session

      public org.apache.maven.api.Session session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • trace

      public org.apache.maven.api.services.RequestTrace trace()
      Returns the value of the trace record component.
      Returns:
      the value of the trace record component
    • repositories

      public List<org.apache.maven.api.RemoteRepository> repositories()
      Returns the value of the repositories record component.
      Returns:
      the value of the repositories record component
    • groupId

      public String groupId()
      Returns the value of the groupId record component.
      Returns:
      the value of the groupId record component
    • artifactId

      public String artifactId()
      Returns the value of the artifactId record component.
      Returns:
      the value of the artifactId record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • classifier

      public String classifier()
      Returns the value of the classifier record component.
      Returns:
      the value of the classifier record component
    • tag

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