Record Class IssueType
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.validation.IssueType
public record IssueType(IssueCode code, IssueSeverity severity, List<IssueMetadata> metadata)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIssueType(IssueCode code, IssueSeverity severity, String message) IssueType(IssueCode code, IssueSeverity severity, List<IssueMetadata> metadata) Creates an instance of aIssueTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.severity()Returns the value of theseverityrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
IssueType
Creates an instance of aIssueTyperecord class.- Parameters:
code- the value for thecoderecord componentseverity- the value for theseverityrecord componentmetadata- the value for themetadatarecord component
-
IssueType
-
-
Method Details
-
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). -
hashCode
-
toString
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-