Package dev.dokimos.server.dto.v1
Record Class TrendData.RunPoint
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TrendData.RunPoint
- Enclosing class:
TrendData
-
Constructor Summary
Constructors -
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.longReturns the value of thepassedItemsrecord component.doublepassRate()Returns the value of thepassRaterecord component.runId()Returns the value of therunIdrecord component.Returns the value of thestartedAtrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
RunPoint
Creates an instance of aRunPointrecord class.- Parameters:
runId- the value for therunIdrecord componentstartedAt- the value for thestartedAtrecord componentpassRate- the value for thepassRaterecord componenttotalItems- the value for thetotalItemsrecord componentpassedItems- the value for thepassedItemsrecord 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 '=='. -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
passRate
public double passRate()Returns the value of thepassRaterecord component.- Returns:
- the value of the
passRaterecord 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
-