Class AbstractValueRangeDescriptor<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Implemented Interfaces:
ValueRangeDescriptor<Solution_>
- Direct Known Subclasses:
AbstractFromPropertyValueRangeDescriptor,CompositeValueRangeDescriptor
public abstract class AbstractValueRangeDescriptor<Solution_>
extends Object
implements ValueRangeDescriptor<Solution_>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final GenuineVariableDescriptor<Solution_> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> ValueRange<T>doNullInValueRangeWrapping(ValueRange<T> valueRange) booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.domain.valuerange.descriptor.ValueRangeDescriptor
extractValueRange, extractValueRangeSize, isCountable, isEntityIndependent
-
Field Details
-
variableDescriptor
-
addNullInValueRange
protected final boolean addNullInValueRange
-
-
Constructor Details
-
AbstractValueRangeDescriptor
public AbstractValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange)
-
-
Method Details
-
getVariableDescriptor
- Specified by:
getVariableDescriptorin interfaceValueRangeDescriptor<Solution_>- Returns:
- never null
-
mightContainEntity
public boolean mightContainEntity()- Specified by:
mightContainEntityin interfaceValueRangeDescriptor<Solution_>- Returns:
- true if the
ValueRangemight contain a planning entity instance (not necessarily of the same entity class as this entity class of this descriptor.
-
doNullInValueRangeWrapping
-
toString
-