Class AbstractFromPropertyValueRangeDescriptor<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor<Solution_>
ai.timefold.solver.core.impl.domain.valuerange.descriptor.AbstractFromPropertyValueRangeDescriptor<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Implemented Interfaces:
ValueRangeDescriptor<Solution_>
- Direct Known Subclasses:
FromEntityPropertyValueRangeDescriptor,FromSolutionPropertyValueRangeDescriptor
public abstract class AbstractFromPropertyValueRangeDescriptor<Solution_>
extends AbstractValueRangeDescriptor<Solution_>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected final MemberAccessorFields inherited from class ai.timefold.solver.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor
addNullInValueRange, variableDescriptor -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFromPropertyValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange, MemberAccessor memberAccessor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected <Value_> ValueRange<Value_>readValueRange(Object bean) protected longreadValueRangeSize(Object bean) Methods inherited from class ai.timefold.solver.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor
doNullInValueRangeWrapping, getVariableDescriptor, mightContainEntity, toStringMethods 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, isEntityIndependent
-
Field Details
-
memberAccessor
-
collectionWrapping
protected boolean collectionWrapping -
arrayWrapping
protected boolean arrayWrapping -
countable
protected boolean countable
-
-
Constructor Details
-
AbstractFromPropertyValueRangeDescriptor
public AbstractFromPropertyValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange, MemberAccessor memberAccessor)
-
-
Method Details
-
isCountable
public boolean isCountable()- Returns:
- true if the
ValueRangeis countable (for example a double value range between 1.2 and 1.4 is not countable)
-
readValueRange
-
readValueRangeSize
-