Annotation Interface PiggybackShadowVariable
@Target({METHOD,FIELD})
@Retention(RUNTIME)
@Deprecated(since="1.28.0",
forRemoval=true)
public @interface PiggybackShadowVariable
Deprecated, for removal: This API element is subject to removal in a future version.
Specifies that a bean property (or a field) is a custom shadow variable that is updated by another shadow variable's
variable listener.
It is specified on a getter of a java bean property (or a field) of a PlanningEntity class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.Workaround for annotation limitation inshadowEntityClass(). -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The shadow variable name. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>Deprecated, for removal: This API element is subject to removal in a future version.ThePlanningEntityclass of the shadow variable with a variable listener.
-
Element Details
-
shadowVariableName
String shadowVariableNameDeprecated, for removal: This API element is subject to removal in a future version.The shadow variable name.- Returns:
- never null, a genuine or shadow variable name
-
-
-
shadowEntityClass
Class<?> shadowEntityClassDeprecated, for removal: This API element is subject to removal in a future version.ThePlanningEntityclass of the shadow variable with a variable listener.Specified if the referenced shadow variable is on a different
Classthan the class that uses this annotation.- Returns:
PiggybackShadowVariable.NullEntityClasswhen it is null (workaround for annotation limitation). Defaults to the sameClassas the one that uses this annotation.
- Default:
- ai.timefold.solver.core.api.domain.variable.PiggybackShadowVariable.NullEntityClass.class
-
supplierwithsourcesinstead.