Enum Class LookUpStrategyType

java.lang.Object
java.lang.Enum<LookUpStrategyType>
ai.timefold.solver.core.api.domain.lookup.LookUpStrategyType
All Implemented Interfaces:
Serializable, Comparable<LookUpStrategyType>, Constable

@Deprecated(forRemoval=true, since="1.10.0") public enum LookUpStrategyType extends Enum<LookUpStrategyType>
Deprecated, for removal: This API element is subject to removal in a future version.
When multi-threaded solving, ensure your domain classes use @PlanningId instead.
Determines how ScoreDirector.lookUpWorkingObject(Object) maps a problem fact or a planning entity from an external copy to the internal one.
  • Enum Constant Details

    • PLANNING_ID_OR_NONE

      public static final LookUpStrategyType PLANNING_ID_OR_NONE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Map by the same PlanningId field or method. If there is no such field or method, there is no mapping and ScoreDirector.lookUpWorkingObject(Object) must not be used. If there is such a field or method, but it returns null, it fails fast.

      This is the default.

    • PLANNING_ID_OR_FAIL_FAST

      public static final LookUpStrategyType PLANNING_ID_OR_FAIL_FAST
      Deprecated, for removal: This API element is subject to removal in a future version.
      Map by the same PlanningId field or method. If there is no such field or method, it fails fast.
    • EQUALITY

      public static final LookUpStrategyType EQUALITY
      Deprecated, for removal: This API element is subject to removal in a future version.
      Map by equals(Object) and hashCode(). If any of these two methods is not overridden by the working object's class or some of its superclasses, ScoreDirector.lookUpWorkingObject(Object) must not be used because it cannot work correctly with Object's equals and hashCode implementations.
    • NONE

      public static final LookUpStrategyType NONE
      Deprecated, for removal: This API element is subject to removal in a future version.
      There is no mapping and ScoreDirector.lookUpWorkingObject(Object) must not be used.
  • Method Details

    • values

      public static LookUpStrategyType[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LookUpStrategyType valueOf(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null