Record Class ValidationResult<ValidationIssue_ extends Issue>
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.validation.dto.ValidationResult<ValidationIssue_>
public record ValidationResult<ValidationIssue_ extends Issue>(ValidationStatus status, Collection<ValidationIssue_ extends Issue> issues)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValidationResult(ValidationStatus status, Collection<ValidationIssue_> issues) Creates an instance of aValidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issues()Returns the value of theissuesrecord component.booleanisValid()status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationResult
Creates an instance of aValidationResultrecord class.- Parameters:
status- the value for thestatusrecord componentissues- the value for theissuesrecord component
-
-
Method Details
-
isValid
public boolean isValid() -
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
-
issues
Returns the value of theissuesrecord component.- Returns:
- the value of the
issuesrecord component
-