Record Class ValidationSummary
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.internal.events.ValidationSummary
public record ValidationSummary(ValidationStatus status, Integer errorCount, Integer warningCount, Map<String,Integer> errorCountsByCode, Map<String,Integer> warningCountsByCode)
extends Record
A compact summary of a dataset validation, carrying the overall
ValidationStatus and issue counts by
IssueCode split by severity.
When the model does not support validation, status is ValidationStatus.VALIDATION_NOT_SUPPORTED and
the counts are null, so they can be omitted downstream rather than reported as zero.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationSummary(ValidationStatus status, Integer errorCount, Integer warningCount, Map<String, Integer> errorCountsByCode, Map<String, Integer> warningCountsByCode) Creates an instance of aValidationSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCountrecord component.Returns the value of theerrorCountsByCoderecord component.final inthashCode()Returns a hash code value for this object.static ValidationSummaryof(ValidationResult<?> validationResult) status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewarningCountrecord component.Returns the value of thewarningCountsByCoderecord component.
-
Constructor Details
-
ValidationSummary
public ValidationSummary(ValidationStatus status, Integer errorCount, Integer warningCount, Map<String, Integer> errorCountsByCode, Map<String, Integer> warningCountsByCode) Creates an instance of aValidationSummaryrecord class.- Parameters:
status- the value for thestatusrecord componenterrorCount- the value for theerrorCountrecord componentwarningCount- the value for thewarningCountrecord componenterrorCountsByCode- the value for theerrorCountsByCoderecord componentwarningCountsByCode- the value for thewarningCountsByCoderecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
errorCount
Returns the value of theerrorCountrecord component.- Returns:
- the value of the
errorCountrecord component
-
warningCount
Returns the value of thewarningCountrecord component.- Returns:
- the value of the
warningCountrecord component
-
errorCountsByCode
-
warningCountsByCode
-