Class AbstractVariableDescriptorBasedDemand<Solution_,Supply_ extends Supply>
- java.lang.Object
-
- ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand<Solution_,Supply_>
-
- Type Parameters:
Solution_-Supply_-
- All Implemented Interfaces:
Demand<Supply_>
- Direct Known Subclasses:
AnchorVariableDemand,CollectionInverseVariableDemand,IndexVariableDemand,SingletonInverseVariableDemand,SingletonListInverseVariableDemand
public abstract class AbstractVariableDescriptorBasedDemand<Solution_,Supply_ extends Supply> extends Object implements Demand<Supply_>
SomeDemandimplementation classes are defined by theirVariableDescriptorand nothing else. However, they still must not equal (and therefore have the samehashCode()) as otherDemandimplementation classes defined by the sameVariableDescriptor. This helper abstraction exists so that this logic can be shared across all suchDemandimplementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableDescriptor<Solution_>variableDescriptor
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractVariableDescriptorBasedDemand(VariableDescriptor<Solution_> variableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ai.timefold.solver.core.impl.domain.variable.supply.Demand
createExternalizedSupply
-
-
-
-
Field Detail
-
variableDescriptor
protected final VariableDescriptor<Solution_> variableDescriptor
-
-
Constructor Detail
-
AbstractVariableDescriptorBasedDemand
protected AbstractVariableDescriptorBasedDemand(VariableDescriptor<Solution_> variableDescriptor)
-
-