Record Class ModelResolver.ModelResolverRequest
java.lang.Object
java.lang.Record
org.apache.maven.api.services.model.ModelResolver.ModelResolverRequest
- Enclosing interface:
- ModelResolver
- 
Constructor SummaryConstructorsConstructorDescriptionModelResolverRequest(Session session, RequestTrace trace, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier) Creates an instance of aModelResolverRequestrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.Returns the value of theclassifierrecord component.booleanIndicates whether some other object is "equal to" this one.Returns the session associated with this request.getTrace()Returns the trace information associated with this request, if any.groupId()Returns the value of thegroupIdrecord component.inthashCode()Returns a hash code value for this object.Returns the value of therepositoriesrecord component.session()Returns the value of thesessionrecord component.toString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.version()Returns the value of theversionrecord component.
- 
Constructor Details- 
ModelResolverRequestpublic ModelResolverRequest(@Nonnull Session session, @Nullable RequestTrace trace, @Nullable List<RemoteRepository> repositories, @Nonnull String groupId, @Nonnull String artifactId, @Nonnull String version, @Nullable String classifier) Creates an instance of aModelResolverRequestrecord class.- Parameters:
- session- the value for the- sessionrecord component
- trace- the value for the- tracerecord component
- repositories- the value for the- repositoriesrecord component
- groupId- the value for the- groupIdrecord component
- artifactId- the value for the- artifactIdrecord component
- version- the value for the- versionrecord component
- classifier- the value for the- classifierrecord component
 
 
- 
- 
Method Details- 
getSessionDescription copied from interface:RequestReturns the session associated with this request.- Specified by:
- getSessionin interface- Request<Session>
- Returns:
- the session instance, never null
 
- 
getTraceDescription copied from interface:RequestReturns the trace information associated with this request, if any. The trace provides context about the request's position in the operation hierarchy and can carry additional diagnostic information.
- 
equalsIndicates 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).
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
toStringReturns 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.
- 
sessionReturns the value of thesessionrecord component.- Returns:
- the value of the sessionrecord component
 
- 
traceReturns the value of thetracerecord component.- Returns:
- the value of the tracerecord component
 
- 
repositoriesReturns the value of therepositoriesrecord component.- Returns:
- the value of the repositoriesrecord component
 
- 
groupIdReturns the value of thegroupIdrecord component.- Returns:
- the value of the groupIdrecord component
 
- 
artifactIdReturns the value of theartifactIdrecord component.- Returns:
- the value of the artifactIdrecord component
 
- 
versionReturns the value of theversionrecord component.- Returns:
- the value of the versionrecord component
 
- 
classifierReturns the value of theclassifierrecord component.- Returns:
- the value of the classifierrecord component
 
 
-