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 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 a CaseComparison record class.
      Parameters:
      type - the value for the type record component
      leftCommit - the value for the leftCommit record component
      rightCommit - the value for the rightCommit record component
      numCases - the value for the numCases record component
      addedTotal - the value for the addedTotal record component
      removedTotal - the value for the removedTotal record component
      improvedStats - the value for the improvedStats record component
      regressedStats - the value for the regressedStats record component
  • Method Details

    • added

      public static GenerateComparisonsTask.CaseComparison added(int[] sum, String commit)
    • removed

      public static GenerateComparisonsTask.CaseComparison removed(int[] sum, String commit)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • leftCommit

      @Nullable public @Nullable String leftCommit()
      Returns the value of the leftCommit record component.
      Returns:
      the value of the leftCommit record component
    • rightCommit

      @Nullable public @Nullable String rightCommit()
      Returns the value of the rightCommit record component.
      Returns:
      the value of the rightCommit record component
    • numCases

      public int[] numCases()
      Returns the value of the numCases record component.
      Returns:
      the value of the numCases record component
    • addedTotal

      public int[] addedTotal()
      Returns the value of the addedTotal record component.
      Returns:
      the value of the addedTotal record component
    • removedTotal

      public int[] removedTotal()
      Returns the value of the removedTotal record component.
      Returns:
      the value of the removedTotal record component
    • improvedStats

      public int[] improvedStats()
      Returns the value of the improvedStats record component.
      Returns:
      the value of the improvedStats record component
    • regressedStats

      public int[] regressedStats()
      Returns the value of the regressedStats record component.
      Returns:
      the value of the regressedStats record component