Record Class ConstraintGroupInfo
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.description.ConstraintGroupInfo
- Record Components:
id- Stable unique identifier of the constraint group.name- Human-readable name of the constraint group.description- Explanation of what constraints in this group represent.icon- Icon name for this constraint group. Any icon name from Tabler Icons is valid.- Optional tags that can be used to classify or filter the constraint group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedescriptionrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@Nullable Stringicon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable String[]tags()Returns the value of thetagsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ConstraintGroupInfo
public ConstraintGroupInfo(String id, @Nullable String name, @Nullable String description, @Nullable String icon, @Nullable String[] tags) Creates an instance of aConstraintGroupInforecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord 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
-
tags
-