Class VariableDescriptorCache<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.score.director.VariableDescriptorCache<Solution_>
- Type Parameters:
Solution_-
Each before/after event needs to look up a variable descriptor.
These operations are not cheap, they are very frequent and they often end up looking up the same descriptor.
These caches are used to avoid looking up the same descriptor multiple times.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetListVariableDescriptor(Object entity, String variableName) getVariableDescriptor(Object entity, String variableName)
-
Constructor Details
-
VariableDescriptorCache
-
-
Method Details
-
getVariableDescriptor
-
getListVariableDescriptor
public ListVariableDescriptor<Solution_> getListVariableDescriptor(Object entity, String variableName)
-