Record Class VariableSourceReference
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.variable.declarative.VariableSourceReference
@NullMarked
public record VariableSourceReference(VariableMetaModel<?,?,?> variableMetaModel, List<MemberAccessor> chainToVariableEntity, boolean onRootEntity, boolean isTopLevel, boolean isBottomLevel, boolean isDeclarative, VariableMetaModel<?,?,?> targetVariableMetamodel, @Nullable VariableMetaModel<?,?,?> downstreamDeclarativeVariableMetamodel, Function<Object,@Nullable Object> targetEntityFunctionStartingFromVariableEntity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVariableSourceReference(VariableMetaModel<?, ?, ?> variableMetaModel, List<MemberAccessor> chainToVariableEntity, boolean onRootEntity, boolean isTopLevel, boolean isBottomLevel, boolean isDeclarative, VariableMetaModel<?, ?, ?> targetVariableMetamodel, @Nullable VariableMetaModel<?, ?, ?> downstreamDeclarativeVariableMetamodel, Function<Object, @Nullable Object> targetEntityFunctionStartingFromVariableEntity) Creates an instance of aVariableSourceReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thechainToVariableEntityrecord component.@Nullable VariableMetaModel<?,?, ?> Returns the value of thedownstreamDeclarativeVariableMetamodelrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ObjectfindTargetEntity(Object entity) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisBottomLevelrecord component.booleanReturns the value of theisDeclarativerecord component.booleanReturns the value of theisTopLevelrecord component.booleanReturns the value of theonRootEntityrecord component.Returns the value of thetargetEntityFunctionStartingFromVariableEntityrecord component.VariableMetaModel<?,?, ?> Returns the value of thetargetVariableMetamodelrecord component.final StringtoString()Returns a string representation of this record class.VariableMetaModel<?,?, ?> Returns the value of thevariableMetaModelrecord component.
-
Constructor Details
-
VariableSourceReference
public VariableSourceReference(VariableMetaModel<?, ?, ?> variableMetaModel, List<MemberAccessor> chainToVariableEntity, boolean onRootEntity, boolean isTopLevel, boolean isBottomLevel, boolean isDeclarative, VariableMetaModel<?, ?, ?> targetVariableMetamodel, @Nullable VariableMetaModel<?, ?, ?> downstreamDeclarativeVariableMetamodel, Function<Object, @Nullable Object> targetEntityFunctionStartingFromVariableEntity) Creates an instance of aVariableSourceReferencerecord class.- Parameters:
variableMetaModel- the value for thevariableMetaModelrecord componentchainToVariableEntity- the value for thechainToVariableEntityrecord componentonRootEntity- the value for theonRootEntityrecord componentisTopLevel- the value for theisTopLevelrecord componentisBottomLevel- the value for theisBottomLevelrecord componentisDeclarative- the value for theisDeclarativerecord componenttargetVariableMetamodel- the value for thetargetVariableMetamodelrecord componentdownstreamDeclarativeVariableMetamodel- the value for thedownstreamDeclarativeVariableMetamodelrecord componenttargetEntityFunctionStartingFromVariableEntity- the value for thetargetEntityFunctionStartingFromVariableEntityrecord component
-
-
Method Details
-
affectGraphEdges
public boolean affectGraphEdges() -
findTargetEntity
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
variableMetaModel
Returns the value of thevariableMetaModelrecord component.- Returns:
- the value of the
variableMetaModelrecord component
-
chainToVariableEntity
Returns the value of thechainToVariableEntityrecord component.- Returns:
- the value of the
chainToVariableEntityrecord component
-
onRootEntity
public boolean onRootEntity()Returns the value of theonRootEntityrecord component.- Returns:
- the value of the
onRootEntityrecord component
-
isTopLevel
public boolean isTopLevel()Returns the value of theisTopLevelrecord component.- Returns:
- the value of the
isTopLevelrecord component
-
isBottomLevel
public boolean isBottomLevel()Returns the value of theisBottomLevelrecord component.- Returns:
- the value of the
isBottomLevelrecord component
-
isDeclarative
public boolean isDeclarative()Returns the value of theisDeclarativerecord component.- Returns:
- the value of the
isDeclarativerecord component
-
targetVariableMetamodel
Returns the value of thetargetVariableMetamodelrecord component.- Returns:
- the value of the
targetVariableMetamodelrecord component
-
downstreamDeclarativeVariableMetamodel
Returns the value of thedownstreamDeclarativeVariableMetamodelrecord component.- Returns:
- the value of the
downstreamDeclarativeVariableMetamodelrecord component
-
targetEntityFunctionStartingFromVariableEntity
Returns the value of thetargetEntityFunctionStartingFromVariableEntityrecord component.- Returns:
- the value of the
targetEntityFunctionStartingFromVariableEntityrecord component
-