Package com.tnsai.evaluation.reporting
Record Class TrendAnalyzer.TrendReport
java.lang.Object
java.lang.Record
com.tnsai.evaluation.reporting.TrendAnalyzer.TrendReport
- Enclosing class:
TrendAnalyzer
public static record TrendAnalyzer.TrendReport(int runCount, Map<String,TrendAnalyzer.MetricTrend> metricTrends)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTrendReport(int runCount, Map<String, TrendAnalyzer.MetricTrend> metricTrends) Creates an instance of aTrendReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.static TrendAnalyzer.TrendReportReturns the value of themetricTrendsrecord component.intrunCount()Returns the value of therunCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrendReport
Creates an instance of aTrendReportrecord class.- Parameters:
runCount- the value for therunCountrecord componentmetricTrends- the value for themetricTrendsrecord component
-
-
Method Details
-
insufficient
-
hasDegradations
public boolean hasDegradations() -
degradingMetrics
-
improvingMetrics
-
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 '=='. -
runCount
public int runCount()Returns the value of therunCountrecord component.- Returns:
- the value of the
runCountrecord component
-
metricTrends
Returns the value of themetricTrendsrecord component.- Returns:
- the value of the
metricTrendsrecord component
-