Record Class ModelResolver.ModelResolverResult
java.lang.Object
java.lang.Record
org.apache.maven.api.services.model.ModelResolver.ModelResolverResult
- All Implemented Interfaces:
Result<ModelResolver.ModelResolverRequest>
- Enclosing interface:
ModelResolver
public static record ModelResolver.ModelResolverResult(ModelResolver.ModelResolverRequest request, ModelSource source, String version)
extends Record
implements Result<ModelResolver.ModelResolverRequest>
-
Constructor Summary
ConstructorsConstructorDescriptionModelResolverResult(ModelResolver.ModelResolverRequest request, ModelSource source, String version) Creates an instance of aModelResolverResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.request()Returns the value of therequestrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ModelResolverResult
public ModelResolverResult(ModelResolver.ModelResolverRequest request, ModelSource source, String version) Creates an instance of aModelResolverResultrecord class.- Parameters:
request- the value for therequestrecord componentsource- the value for thesourcerecord componentversion- the value for theversionrecord component
-
-
Method Details
-
getRequest
- Specified by:
getRequestin interfaceResult<ModelResolver.ModelResolverRequest>
-
toString
-
hashCode
-
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). -
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-