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 nodestreamKind- the kind of stream (e.g., JOIN, FILTER)qualifier- an optional qualifier to distinguish parts of the same node, such as left and right inputlocationSet- 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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstraintNodeProfileId(long key, StreamKind streamKind, ConstraintNodeProfileId.Qualifier qualifier, SortedSet<ConstraintNodeLocation> locationSet) Creates an instance of aConstraintNodeProfileIdrecord class.ConstraintNodeProfileId(long key, StreamKind streamKind, SortedSet<ConstraintNodeLocation> locationSet) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ConstraintNodeProfileId other) booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.longkey()Returns the value of thekeyrecord component.Returns the value of thelocationSetrecord component.Returns the value of thequalifierrecord component.Returns the value of thestreamKindrecord component.toString()Returns a string representation of this record class.UnliketoString(), includes location information.
-
Constructor Details
-
ConstraintNodeProfileId
public ConstraintNodeProfileId(long key, StreamKind streamKind, SortedSet<ConstraintNodeLocation> locationSet) -
ConstraintNodeProfileId
public ConstraintNodeProfileId(long key, StreamKind streamKind, ConstraintNodeProfileId.Qualifier qualifier, SortedSet<ConstraintNodeLocation> locationSet) Creates an instance of aConstraintNodeProfileIdrecord class.- Parameters:
key- the value for thekeyrecord componentstreamKind- the value for thestreamKindrecord componentqualifier- the value for thequalifierrecord componentlocationSet- the value for thelocationSetrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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. -
compareTo
- Specified by:
compareToin interfaceComparable<ConstraintNodeProfileId>
-
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. -
toVerboseString
UnliketoString(), 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 thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
streamKind
Returns the value of thestreamKindrecord component.- Returns:
- the value of the
streamKindrecord component
-
qualifier
Returns the value of thequalifierrecord component.- Returns:
- the value of the
qualifierrecord component
-
locationSet
Returns the value of thelocationSetrecord component.- Returns:
- the value of the
locationSetrecord component
-