Record Class ConstraintGroupDescriptor

java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.internal.descriptor.ConstraintGroupDescriptor
Record Components:
id - the group id
name - the human-readable name
description - the human-readable description
constraintDescriptors - the descriptors of constraints that belong to this group
tags - any string tags

public record ConstraintGroupDescriptor(String id, String name, String description, String icon, ConstraintDescriptor[] constraintDescriptors, String[] tags) extends Record
Describes a group constraints.
  • Constructor Details

    • ConstraintGroupDescriptor

      public ConstraintGroupDescriptor(String id, String name, String description, String icon, ConstraintDescriptor[] constraintDescriptors, String[] tags)
      Creates an instance of a ConstraintGroupDescriptor record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      description - the value for the description record component
      icon - the value for the icon record component
      constraintDescriptors - the value for the constraintDescriptors record component
      tags - the value for the tags record component
  • Method Details

    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • constraintDescriptors

      public ConstraintDescriptor[] constraintDescriptors()
      Returns the value of the constraintDescriptors record component.
      Returns:
      the value of the constraintDescriptors record component
    • tags

      public String[] tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component