Record Class IterationTimestampParser.IterationWindow
java.lang.Object
java.lang.Record
de.cuioss.benchmarking.common.metrics.IterationTimestampParser.IterationWindow
- Enclosing class:
IterationTimestampParser
public static record IterationTimestampParser.IterationWindow(String benchmarkName, String forkId, String iterationType, int iterationNumber, Instant startTime, Instant endTime, long durationMs)
extends Record
Represents a time window for a benchmark iteration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebenchmarkNamerecord component.longReturns the value of thedurationMsrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.forkId()Returns the value of theforkIdrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanisWarmup()intReturns the value of theiterationNumberrecord component.Returns the value of theiterationTyperecord component.Returns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IterationWindow
public IterationWindow(String benchmarkName, String forkId, String iterationType, int iterationNumber, Instant startTime, Instant endTime, long durationMs) Creates an instance of aIterationWindowrecord class.- Parameters:
benchmarkName- the value for thebenchmarkNamerecord componentforkId- the value for theforkIdrecord componentiterationType- the value for theiterationTyperecord componentiterationNumber- the value for theiterationNumberrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentdurationMs- the value for thedurationMsrecord component
-
-
Method Details
-
isMeasurement
-
isWarmup
-
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
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 '=='. -
benchmarkName
Returns the value of thebenchmarkNamerecord component.- Returns:
- the value of the
benchmarkNamerecord component
-
forkId
Returns the value of theforkIdrecord component.- Returns:
- the value of the
forkIdrecord component
-
iterationType
Returns the value of theiterationTyperecord component.- Returns:
- the value of the
iterationTyperecord component
-
iterationNumber
Returns the value of theiterationNumberrecord component.- Returns:
- the value of the
iterationNumberrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
durationMs
Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-