Record Class LegacyValidationResult
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.validation.LegacyValidationResult
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyValidationResult(ValidationStatus summary, List<String> errors, List<String> warnings) Creates an instance of aLegacyValidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.booleanisValid()static LegacyValidationResultstatic LegacyValidationResultsummary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
LegacyValidationResult
Creates an instance of aLegacyValidationResultrecord class.- Parameters:
summary- the value for thesummaryrecord componenterrors- the value for theerrorsrecord componentwarnings- the value for thewarningsrecord component
-
-
Method Details
-
notSupported
-
successful
-
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). -
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
errors
-
warnings
-