Package win.dailypickle.report.model
Record Class CountSummary
java.lang.Object
java.lang.Record
win.dailypickle.report.model.CountSummary
public record CountSummary(int total, int passed, int failed, int pending, int undefined, int ambiguous, int skipped)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCountSummary(int total, int passed, int failed, int pending, int undefined, int ambiguous, int skipped) Creates an instance of aCountSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadd(CountSummary other) intReturns the value of theambiguousrecord component.final booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intpassed()Returns the value of thepassedrecord component.intpending()Returns the value of thependingrecord component.intskipped()Returns the value of theskippedrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.intReturns the value of theundefinedrecord component.
-
Field Details
-
ZERO
-
-
Constructor Details
-
CountSummary
public CountSummary(int total, int passed, int failed, int pending, int undefined, int ambiguous, int skipped) Creates an instance of aCountSummaryrecord class.- Parameters:
total- the value for thetotalrecord componentpassed- the value for thepassedrecord componentfailed- the value for thefailedrecord componentpending- the value for thependingrecord componentundefined- the value for theundefinedrecord componentambiguous- the value for theambiguousrecord componentskipped- the value for theskippedrecord component
-
-
Method Details
-
add
-
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 with '=='. -
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
passed
public int passed()Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
undefined
public int undefined()Returns the value of theundefinedrecord component.- Returns:
- the value of the
undefinedrecord component
-
ambiguous
public int ambiguous()Returns the value of theambiguousrecord component.- Returns:
- the value of the
ambiguousrecord component
-
skipped
public int skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-