Record Class GraphNode<Solution_>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.variable.declarative.GraphNode<Solution_>
@NullMarked
public record GraphNode<Solution_>(Object entity, List<VariableUpdaterInfo<Solution_>> variableReferences, int graphNodeId, int entityId, @org.jspecify.annotations.Nullable int[] groupEntityIds)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGraphNode(Object entity, List<VariableUpdaterInfo<Solution_>> variableReferences, int graphNodeId, int entityId, @org.jspecify.annotations.Nullable int[] groupEntityIds) Creates an instance of aGraphNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.intentityId()Returns the value of theentityIdrecord component.booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegraphNodeIdrecord component.@org.jspecify.annotations.Nullable int[]Returns the value of thegroupEntityIdsrecord 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
-
GraphNode
public GraphNode(Object entity, List<VariableUpdaterInfo<Solution_>> variableReferences, int graphNodeId, int entityId, @org.jspecify.annotations.Nullable int[] groupEntityIds) Creates an instance of aGraphNoderecord class.- Parameters:
entity- the value for theentityrecord componentvariableReferences- the value for thevariableReferencesrecord componentgraphNodeId- the value for thegraphNodeIdrecord componententityId- the value for theentityIdrecord componentgroupEntityIds- the value for thegroupEntityIdsrecord 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
-
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
groupEntityIds
public @org.jspecify.annotations.Nullable int[] groupEntityIds()Returns the value of thegroupEntityIdsrecord component.- Returns:
- the value of the
groupEntityIdsrecord component
-