Record Class EntityVariablePair<Solution_>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.variable.declarative.EntityVariablePair<Solution_>
@NullMarked
public record EntityVariablePair<Solution_>(Object entity, List<VariableUpdaterInfo<Solution_>> variableReferences, int graphNodeId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntityVariablePair(Object entity, List<VariableUpdaterInfo<Solution_>> variableReferences, int graphNodeId) Creates an instance of aEntityVariablePairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegraphNodeIdrecord component.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.Returns the value of thevariableReferencesrecord component.
-
Constructor Details
-
EntityVariablePair
public EntityVariablePair(Object entity, List<VariableUpdaterInfo<Solution_>> variableReferences, int graphNodeId) Creates an instance of aEntityVariablePairrecord class.- Parameters:
entity- the value for theentityrecord componentvariableReferences- the value for thevariableReferencesrecord componentgraphNodeId- the value for thegraphNodeIdrecord 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. -
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. -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
variableReferences
Returns the value of thevariableReferencesrecord component.- Returns:
- the value of the
variableReferencesrecord component
-
graphNodeId
public int graphNodeId()Returns the value of thegraphNodeIdrecord component.- Returns:
- the value of the
graphNodeIdrecord component
-