Package dev.dokimos.server.dto.v1
Record Class DatasetItemView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.DatasetItemView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedOutputsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.inputs()Returns the value of theinputsrecord component.metadata()Returns the value of themetadatarecord component.intordinal()Returns the value of theordinalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatasetItemView
public DatasetItemView(UUID id, int ordinal, Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> metadata) Creates an instance of aDatasetItemViewrecord class.- Parameters:
id- the value for theidrecord componentordinal- the value for theordinalrecord componentinputs- the value for theinputsrecord componentexpectedOutputs- the value for theexpectedOutputsrecord componentmetadata- the value for themetadatarecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
ordinal
public int ordinal()Returns the value of theordinalrecord component.- Returns:
- the value of the
ordinalrecord component
-
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
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-