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 non-sealed 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
variableDescriptor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFromPropertyValueRangeDescriptor(int ordinalId, GenuineVariableDescriptor<Solution_> variableDescriptor, MemberAccessor memberAccessor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected <Value_> CountableValueRange<Value_>processValueRange(Object valueRangeObject, Object bean) protected <Value_> CountableValueRange<Value_>readValueRange(Object bean, Object parameter) protected <Value_> CountableValueRange<Value_>readValueRangeForSolution(Solution_ solution) static <Value_> List<Value_>transformArrayToList(Object arrayObject) Methods inherited from class ai.timefold.solver.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor
getOrdinal, 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
acceptsNullInValueRange, canExtractValueRangeFromSolution, extractAllValues, extractValuesFromEntity
-
Field Details
-
memberAccessor
-
collectionWrapping
protected boolean collectionWrapping -
arrayWrapping
protected boolean arrayWrapping -
countable
protected boolean countable
-
-
Constructor Details
-
AbstractFromPropertyValueRangeDescriptor
protected AbstractFromPropertyValueRangeDescriptor(int ordinalId, GenuineVariableDescriptor<Solution_> variableDescriptor, MemberAccessor memberAccessor)
-
-
Method Details
-
isGenericTypeImmutable
public boolean isGenericTypeImmutable()- Returns:
- true if the value range generic type is immutable.
-
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)
-
readValueRangeForSolution
-
readValueRange
-
processValueRange
protected <Value_> CountableValueRange<Value_> processValueRange(Object valueRangeObject, Object bean) -
transformArrayToList
-