Package dev.dokimos.server.dto.v1
Record Class RunSummary
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.RunSummary
-
Constructor Summary
Constructors -
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.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longReturns the value of theitemCountrecord component.longReturns the value of thepassedCountrecord component.passRate()Returns the value of thepassRaterecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RunSummary
public RunSummary(UUID id, RunStatus status, Map<String, Object> config, long itemCount, long passedCount, Double passRate, Instant startedAt, Instant completedAt) Creates an instance of aRunSummaryrecord class.- Parameters:
id- the value for theidrecord componentstatus- the value for thestatusrecord componentconfig- the value for theconfigrecord componentitemCount- the value for theitemCountrecord componentpassedCount- the value for thepassedCountrecord componentpassRate- the value for thepassRaterecord componentstartedAt- the value for thestartedAtrecord componentcompletedAt- the value for thecompletedAtrecord 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
-
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
-
itemCount
public long itemCount()Returns the value of theitemCountrecord component.- Returns:
- the value of the
itemCountrecord component
-
passedCount
public long passedCount()Returns the value of thepassedCountrecord component.- Returns:
- the value of the
passedCountrecord 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
-