Class PlanningIdLookUpStrategy
- java.lang.Object
-
- org.optaplanner.core.impl.domain.lookup.PlanningIdLookUpStrategy
-
- All Implemented Interfaces:
LookUpStrategy
public class PlanningIdLookUpStrategy extends Object implements LookUpStrategy
-
-
Constructor Summary
Constructors Constructor Description PlanningIdLookUpStrategy(MemberAccessor planningIdMemberAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWorkingObject(Map<Object,Object> idToWorkingObjectMap, Object workingObject)
protected Object
extractPlanningId(Object externalObject)
<E> E
lookUpWorkingObject(Map<Object,Object> idToWorkingObjectMap, E externalObject)
<E> E
lookUpWorkingObjectIfExists(Map<Object,Object> idToWorkingObjectMap, E externalObject)
void
removeWorkingObject(Map<Object,Object> idToWorkingObjectMap, Object workingObject)
-
-
-
Constructor Detail
-
PlanningIdLookUpStrategy
public PlanningIdLookUpStrategy(MemberAccessor planningIdMemberAccessor)
-
-
Method Detail
-
addWorkingObject
public void addWorkingObject(Map<Object,Object> idToWorkingObjectMap, Object workingObject)
- Specified by:
addWorkingObject
in interfaceLookUpStrategy
-
removeWorkingObject
public void removeWorkingObject(Map<Object,Object> idToWorkingObjectMap, Object workingObject)
- Specified by:
removeWorkingObject
in interfaceLookUpStrategy
-
lookUpWorkingObject
public <E> E lookUpWorkingObject(Map<Object,Object> idToWorkingObjectMap, E externalObject)
- Specified by:
lookUpWorkingObject
in interfaceLookUpStrategy
-
lookUpWorkingObjectIfExists
public <E> E lookUpWorkingObjectIfExists(Map<Object,Object> idToWorkingObjectMap, E externalObject)
- Specified by:
lookUpWorkingObjectIfExists
in interfaceLookUpStrategy
-
-