Package dev.dokimos.server.dto.v1
Record Class RunDetails
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.RunDetails
public record RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String,Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, org.springframework.data.domain.Page<RunDetails.ItemSummary> items)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionRunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String, Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, org.springframework.data.domain.Page<RunDetails.ItemSummary> items) Creates an instance of aRunDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletedAtrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentIdrecord component.Returns the value of theexperimentNamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.org.springframework.data.domain.Page<RunDetails.ItemSummary> items()Returns the value of theitemsrecord component.longReturns the value of thepassedItemsrecord component.passRate()Returns the value of thepassRaterecord component.Returns the value of theprojectNamerecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
RunDetails
public RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String, Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, org.springframework.data.domain.Page<RunDetails.ItemSummary> items) Creates an instance of aRunDetailsrecord class.- Parameters:
id- the value for theidrecord componentexperimentId- the value for theexperimentIdrecord componentexperimentName- the value for theexperimentNamerecord componentprojectName- the value for theprojectNamerecord componentstatus- the value for thestatusrecord componentconfig- the value for theconfigrecord componenttotalItems- the value for thetotalItemsrecord componentpassedItems- the value for thepassedItemsrecord componentpassRate- the value for thepassRaterecord componentstartedAt- the value for thestartedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentitems- the value for theitemsrecord 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
-
experimentId
Returns the value of theexperimentIdrecord component.- Returns:
- the value of the
experimentIdrecord component
-
experimentName
Returns the value of theexperimentNamerecord component.- Returns:
- the value of the
experimentNamerecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
totalItems
public long totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
passedItems
public long passedItems()Returns the value of thepassedItemsrecord component.- Returns:
- the value of the
passedItemsrecord component
-
passRate
Returns the value of thepassRaterecord component.- Returns:
- the value of the
passRaterecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-