Record Class ConstraintNodeProfileId

java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.common.ConstraintNodeProfileId
Record Components:
key - the unique key of the constraint node
streamKind - the kind of stream (e.g., JOIN, FILTER)
qualifier - an optional qualifier to distinguish parts of the same node, such as left and right input
locationSet - the set of locations where this constraint node is defined
All Implemented Interfaces:
Comparable<ConstraintNodeProfileId>

@NullMarked public record ConstraintNodeProfileId(long key, StreamKind streamKind, ConstraintNodeProfileId.Qualifier qualifier, SortedSet<ConstraintNodeLocation> locationSet) extends Record implements Comparable<ConstraintNodeProfileId>
A unique identifier for a constraint node profile.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object object)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object 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
    • compareTo

      public int compareTo(ConstraintNodeProfileId other)
      Specified by:
      compareTo in interface Comparable<ConstraintNodeProfileId>
    • 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
    • toVerboseString

      public String toVerboseString()
      Unlike toString(), includes location information. This is more verbose and intended for explanatory messages.
      Returns:
      a verbose string representation of this profile ID
    • key

      public long key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • streamKind

      public StreamKind streamKind()
      Returns the value of the streamKind record component.
      Returns:
      the value of the streamKind record component
    • qualifier

      Returns the value of the qualifier record component.
      Returns:
      the value of the qualifier record component
    • locationSet

      public SortedSet<ConstraintNodeLocation> locationSet()
      Returns the value of the locationSet record component.
      Returns:
      the value of the locationSet record component