Package net.javasauce.ss.tasks.report
Record Class GenerateComparisonsTask.CaseComparison
java.lang.Object
java.lang.Record
net.javasauce.ss.tasks.report.GenerateComparisonsTask.CaseComparison
- Enclosing class:
GenerateComparisonsTask
public static record GenerateComparisonsTask.CaseComparison(GenerateComparisonsTask.ComparisonType type, @Nullable String leftCommit, @Nullable String rightCommit, int[] numCases, int[] addedTotal, int[] removedTotal, int[] improvedStats, int[] regressedStats)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCaseComparison(GenerateComparisonsTask.ComparisonType type, @Nullable String leftCommit, @Nullable String rightCommit, int[] numCases, int[] addedTotal, int[] removedTotal, int[] improvedStats, int[] regressedStats) Creates an instance of aCaseComparisonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]Returns the value of theaddedTotalrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.int[]Returns the value of theimprovedStatsrecord component.@Nullable StringReturns the value of theleftCommitrecord component.int[]numCases()Returns the value of thenumCasesrecord component.int[]Returns the value of theregressedStatsrecord component.int[]Returns the value of theremovedTotalrecord component.@Nullable StringReturns the value of therightCommitrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CaseComparison
public CaseComparison(GenerateComparisonsTask.ComparisonType type, @Nullable @Nullable String leftCommit, @Nullable @Nullable String rightCommit, int[] numCases, int[] addedTotal, int[] removedTotal, int[] improvedStats, int[] regressedStats) Creates an instance of aCaseComparisonrecord class.- Parameters:
type- the value for thetyperecord componentleftCommit- the value for theleftCommitrecord componentrightCommit- the value for therightCommitrecord componentnumCases- the value for thenumCasesrecord componentaddedTotal- the value for theaddedTotalrecord componentremovedTotal- the value for theremovedTotalrecord componentimprovedStats- the value for theimprovedStatsrecord componentregressedStats- the value for theregressedStatsrecord component
-
-
Method Details
-
added
-
removed
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
leftCommit
Returns the value of theleftCommitrecord component.- Returns:
- the value of the
leftCommitrecord component
-
rightCommit
Returns the value of therightCommitrecord component.- Returns:
- the value of the
rightCommitrecord component
-
numCases
public int[] numCases()Returns the value of thenumCasesrecord component.- Returns:
- the value of the
numCasesrecord component
-
addedTotal
public int[] addedTotal()Returns the value of theaddedTotalrecord component.- Returns:
- the value of the
addedTotalrecord component
-
removedTotal
public int[] removedTotal()Returns the value of theremovedTotalrecord component.- Returns:
- the value of the
removedTotalrecord component
-
improvedStats
public int[] improvedStats()Returns the value of theimprovedStatsrecord component.- Returns:
- the value of the
improvedStatsrecord component
-
regressedStats
public int[] regressedStats()Returns the value of theregressedStatsrecord component.- Returns:
- the value of the
regressedStatsrecord component
-