Package dev.dokimos.server.dto.v1
Record Class AddItemsRequest.ItemData
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.AddItemsRequest.ItemData
- Enclosing class:
AddItemsRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualOutputsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalResultsrecord component.Returns the value of theexpectedOutputsrecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemData
public ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, List<AddItemsRequest.EvalData> evalResults, boolean success) Creates an instance of aItemDatarecord class.- Parameters:
inputs- the value for theinputsrecord componentexpectedOutputs- the value for theexpectedOutputsrecord componentactualOutputs- the value for theactualOutputsrecord componentevalResults- the value for theevalResultsrecord componentsuccess- the value for thesuccessrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
expectedOutputs
Returns the value of theexpectedOutputsrecord component.- Returns:
- the value of the
expectedOutputsrecord component
-
actualOutputs
Returns the value of theactualOutputsrecord component.- Returns:
- the value of the
actualOutputsrecord component
-
evalResults
Returns the value of theevalResultsrecord component.- Returns:
- the value of the
evalResultsrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-