Record Class TrendDataProcessor.TrendMetrics
java.lang.Object
java.lang.Record
de.cuioss.benchmarking.common.report.TrendDataProcessor.TrendMetrics
- Enclosing class:
TrendDataProcessor
public static record TrendDataProcessor.TrendMetrics(String direction, double changePercentage, double movingAverage, double throughputTrend, double latencyTrend)
extends Record
Represents calculated trend metrics.
-
Constructor Summary
ConstructorsConstructorDescriptionTrendMetrics(String direction, double changePercentage, double movingAverage, double throughputTrend, double latencyTrend) Creates an instance of aTrendMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thechangePercentagerecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelatencyTrendrecord component.doubleReturns the value of themovingAveragerecord component.doubleReturns the value of thethroughputTrendrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrendMetrics
public TrendMetrics(String direction, double changePercentage, double movingAverage, double throughputTrend, double latencyTrend) Creates an instance of aTrendMetricsrecord class.- Parameters:
direction- the value for thedirectionrecord componentchangePercentage- the value for thechangePercentagerecord componentmovingAverage- the value for themovingAveragerecord componentthroughputTrend- the value for thethroughputTrendrecord componentlatencyTrend- the value for thelatencyTrendrecord 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
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 '=='. -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
changePercentage
Returns the value of thechangePercentagerecord component.- Returns:
- the value of the
changePercentagerecord component
-
movingAverage
Returns the value of themovingAveragerecord component.- Returns:
- the value of the
movingAveragerecord component
-
throughputTrend
Returns the value of thethroughputTrendrecord component.- Returns:
- the value of the
throughputTrendrecord component
-
latencyTrend
Returns the value of thelatencyTrendrecord component.- Returns:
- the value of the
latencyTrendrecord component
-