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 aModelResolverResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the request that produced this result.final int
hashCode()
Returns a hash code value for this object.request()
Returns the value of therequest
record component.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
ModelResolverResult
public ModelResolverResult(ModelResolver.ModelResolverRequest request, ModelSource source, String version) Creates an instance of aModelResolverResult
record class.- Parameters:
request
- the value for therequest
record componentsource
- the value for thesource
record componentversion
- the value for theversion
record component
-
-
Method Details
-
getRequest
Description copied from interface:Result
Returns the request that produced this result.- Specified by:
getRequest
in interfaceResult<ModelResolver.ModelResolverRequest>
- Returns:
- the originating request instance, never
null
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 therequest
record component.- Returns:
- the value of the
request
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-