Record Class ModelResolver.ModelResolverRequest
java.lang.Object
java.lang.Record
org.apache.maven.api.services.model.ModelResolver.ModelResolverRequest
- Enclosing interface:
ModelResolver
-
Constructor Summary
ConstructorsConstructorDescriptionModelResolverRequest
(Session session, RequestTrace trace, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier) Creates an instance of aModelResolverRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactId
record component.Returns the value of theclassifier
record component.boolean
Indicates whether some other object is "equal to" this one.getTrace()
groupId()
Returns the value of thegroupId
record component.int
hashCode()
Returns a hash code value for this object.Returns the value of therepositories
record component.session()
Returns the value of thesession
record component.toString()
Returns a string representation of this record class.trace()
Returns the value of thetrace
record component.version()
Returns the value of theversion
record component.
-
Constructor Details
-
ModelResolverRequest
public 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 aModelResolverRequest
record class.- Parameters:
session
- the value for thesession
record componenttrace
- the value for thetrace
record componentrepositories
- the value for therepositories
record componentgroupId
- the value for thegroupId
record componentartifactId
- the value for theartifactId
record componentversion
- the value for theversion
record componentclassifier
- the value for theclassifier
record component
-
-
Method Details
-
getSession
- Specified by:
getSession
in interfaceRequest<Session>
-
getTrace
-
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
-
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
-
trace
Returns the value of thetrace
record component.- Returns:
- the value of the
trace
record component
-
repositories
Returns the value of therepositories
record component.- Returns:
- the value of the
repositories
record component
-
groupId
-
artifactId
-
version
-
classifier
-