Record Class ModelResponse<Score_, ModelOutput_ extends ModelOutput, InputMetrics_ extends ModelInputMetrics, OutputMetrics_ extends ModelOutputMetrics>
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.domain.ModelResponse<Score_, ModelOutput_, InputMetrics_, OutputMetrics_>
public record ModelResponse<Score_, ModelOutput_ extends ModelOutput, InputMetrics_ extends ModelInputMetrics, OutputMetrics_ extends ModelOutputMetrics>(Metadata<Score_> metadata, ModelOutput_ extends ModelOutput modelOutput, InputMetrics_ extends ModelInputMetrics inputMetrics, OutputMetrics_ extends ModelOutputMetrics outputMetrics)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModelResponse(Metadata<Score_> metadata, ModelOutput_ modelOutput, InputMetrics_ inputMetrics, OutputMetrics_ outputMetrics) Creates an instance of aModelResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getRun()final inthashCode()Returns a hash code value for this object.Returns the value of theinputMetricsrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of themodelOutputrecord component.Returns the value of theoutputMetricsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelResponse
public ModelResponse(Metadata<Score_> metadata, ModelOutput_ modelOutput, InputMetrics_ inputMetrics, OutputMetrics_ outputMetrics) Creates an instance of aModelResponserecord class.- Parameters:
metadata- the value for themetadatarecord componentmodelOutput- the value for themodelOutputrecord componentinputMetrics- the value for theinputMetricsrecord componentoutputMetrics- the value for theoutputMetricsrecord component
-
-
Method Details
-
getRun
-
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). -
metadata
-
modelOutput
Returns the value of themodelOutputrecord component.- Returns:
- the value of the
modelOutputrecord component
-
inputMetrics
Returns the value of theinputMetricsrecord component.- Returns:
- the value of the
inputMetricsrecord component
-
outputMetrics
Returns the value of theoutputMetricsrecord component.- Returns:
- the value of the
outputMetricsrecord component
-