Record Class ConstraintGroupDescriptor
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.internal.descriptor.ConstraintGroupDescriptor
- Record Components:
id- the group idname- the human-readable namedescription- the human-readable descriptionconstraintDescriptors- the descriptors of constraints that belong to this group- any string tags
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintGroupDescriptor(String id, String name, String description, String icon, ConstraintDescriptor[] constraintDescriptors, String[] tags) Creates an instance of aConstraintGroupDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintDescriptorsrecord component.Returns the value of thedescriptionrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.String[]tags()Returns the value of thetagsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ConstraintGroupDescriptor
public ConstraintGroupDescriptor(String id, String name, String description, String icon, ConstraintDescriptor[] constraintDescriptors, String[] tags) Creates an instance of aConstraintGroupDescriptorrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord componentconstraintDescriptors- the value for theconstraintDescriptorsrecord componenttags- the value for thetagsrecord component
-
-
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
-
id
-
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
constraintDescriptors
Returns the value of theconstraintDescriptorsrecord component.- Returns:
- the value of the
constraintDescriptorsrecord component
-
tags
-