Package dev.dokimos.server.dto.v1
Record Class PromoteRequest.PromoteItem
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.PromoteRequest.PromoteItem
- Record Components:
itemResultId- the item result to source inputs, expected output, and metadata from (required)overriddenExpectedOutput- an expected output to use instead of the item result's, or null to keep the item result's expected output
- Enclosing class:
PromoteRequest
public static record PromoteRequest.PromoteItem(@NotNull UUID itemResultId, Map<String,Object> overriddenExpectedOutput)
extends Record
A single run item result to promote.
-
Constructor Summary
ConstructorsConstructorDescriptionPromoteItem(@NotNull UUID itemResultId, Map<String, Object> overriddenExpectedOutput) Creates an instance of aPromoteItemrecord 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.@NotNull UUIDReturns the value of theitemResultIdrecord component.Returns the value of theoverriddenExpectedOutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PromoteItem
public PromoteItem(@NotNull @NotNull UUID itemResultId, Map<String, Object> overriddenExpectedOutput) Creates an instance of aPromoteItemrecord class.- Parameters:
itemResultId- the value for theitemResultIdrecord componentoverriddenExpectedOutput- the value for theoverriddenExpectedOutputrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
itemResultId
Returns the value of theitemResultIdrecord component.- Returns:
- the value of the
itemResultIdrecord component
-
overriddenExpectedOutput
Returns the value of theoverriddenExpectedOutputrecord component.- Returns:
- the value of the
overriddenExpectedOutputrecord component
-