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 the PlanningSolution annotation
All Implemented Interfaces:
ValueRangeDescriptor<Solution_>
Direct Known Subclasses:
FromEntityPropertyValueRangeDescriptor, FromSolutionPropertyValueRangeDescriptor

public abstract non-sealed class AbstractFromPropertyValueRangeDescriptor<Solution_> extends AbstractValueRangeDescriptor<Solution_>
  • Field Details

    • memberAccessor

      protected final MemberAccessor memberAccessor
    • collectionWrapping

      protected boolean collectionWrapping
    • arrayWrapping

      protected boolean arrayWrapping
    • countable

      protected boolean countable
  • Constructor Details

  • Method Details

    • isGenericTypeImmutable

      public boolean isGenericTypeImmutable()
      Returns:
      true if the value range generic type is immutable.
    • isCountable

      public boolean isCountable()
      Returns:
      true if the ValueRange is countable (for example a double value range between 1.2 and 1.4 is not countable)
    • readValueRangeForSolution

      protected <Value_> CountableValueRange<Value_> readValueRangeForSolution(Solution_ solution)
    • readValueRange

      protected <Value_> CountableValueRange<Value_> readValueRange(Object bean, Object parameter)
    • processValueRange

      protected <Value_> CountableValueRange<Value_> processValueRange(Object valueRangeObject, Object bean)
    • transformArrayToList

      public static <Value_> List<Value_> transformArrayToList(Object arrayObject)