Record Class ModelResolver.ModelResolverRequest
java.lang.Object
java.lang.Record
org.apache.maven.api.services.model.ModelResolver.ModelResolverRequest
- All Implemented Interfaces:
org.apache.maven.api.services.Request<org.apache.maven.api.Session>
- Enclosing interface:
- ModelResolver
public static record ModelResolver.ModelResolverRequest(org.apache.maven.api.Session session, @Nullable org.apache.maven.api.services.RequestTrace trace, @Nullable List<org.apache.maven.api.RemoteRepository> repositories, String groupId, String artifactId, String version, @Nullable String classifier)
extends Record
implements org.apache.maven.api.services.Request<org.apache.maven.api.Session>
-
Constructor Summary
ConstructorsConstructorDescriptionModelResolverRequest(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) Creates an instance of aModelResolverRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.Returns the value of theclassifierrecord component.booleanIndicates whether some other object is "equal to" this one.org.apache.maven.api.Sessionorg.apache.maven.api.services.RequestTracegetTrace()groupId()Returns the value of thegroupIdrecord component.inthashCode()Returns a hash code value for this object.List<org.apache.maven.api.RemoteRepository>Returns the value of therepositoriesrecord component.org.apache.maven.api.Sessionsession()Returns the value of thesessionrecord component.toString()Returns a string representation of this record class.org.apache.maven.api.services.RequestTracetrace()Returns the value of thetracerecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ModelResolverRequest
public ModelResolverRequest(@Nonnull org.apache.maven.api.Session session, @Nullable org.apache.maven.api.services.RequestTrace trace, @Nullable List<org.apache.maven.api.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 thesessionrecord componenttrace- the value for thetracerecord componentrepositories- the value for therepositoriesrecord componentgroupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentversion- the value for theversionrecord componentclassifier- the value for theclassifierrecord component
-
-
Method Details
-
getSession
@Nonnull public org.apache.maven.api.Session getSession()- Specified by:
getSessionin interfaceorg.apache.maven.api.services.Request<org.apache.maven.api.Session>
-
getTrace
@Nullable public org.apache.maven.api.services.RequestTrace getTrace()- Specified by:
getTracein interfaceorg.apache.maven.api.services.Request<org.apache.maven.api.Session>
-
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). -
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. -
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. -
session
@Nonnull public org.apache.maven.api.Session session()Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
trace
@Nullable public org.apache.maven.api.services.RequestTrace trace()Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
repositories
Returns the value of therepositoriesrecord component.- Returns:
- the value of the
repositoriesrecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
classifier
Returns the value of theclassifierrecord component.- Returns:
- the value of the
classifierrecord component
-