Package com.tnsai.evaluation.reporting
Record Class QualityGate.Verdict
java.lang.Object
java.lang.Record
com.tnsai.evaluation.reporting.QualityGate.Verdict
- Enclosing class:
QualityGate
public static record QualityGate.Verdict(boolean passed, List<String> failures, List<String> warnings, double passRate, Map<String,Double> scores)
extends Record
Quality gate verdict.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.booleanpassed()Returns the value of thepassedrecord component.doublepassRate()Returns the value of thepassRaterecord component.scores()Returns the value of thescoresrecord component.summary()final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
Verdict
public Verdict(boolean passed, List<String> failures, List<String> warnings, double passRate, Map<String, Double> scores) Creates an instance of aVerdictrecord class.- Parameters:
passed- the value for thepassedrecord componentfailures- the value for thefailuresrecord componentwarnings- the value for thewarningsrecord componentpassRate- the value for thepassRaterecord componentscores- the value for thescoresrecord component
-
-
Method Details
-
summary
-
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 '=='. -
passed
public boolean passed()Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
failures
Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
passRate
public double passRate()Returns the value of thepassRaterecord component.- Returns:
- the value of the
passRaterecord component
-
scores
Returns the value of thescoresrecord component.- Returns:
- the value of the
scoresrecord component
-