Class LookUpManager
java.lang.Object
org.optaplanner.core.impl.domain.lookup.LookUpManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWorkingObject
(Object workingObject) <E> E
lookUpWorkingObject
(E externalObject) As defined byScoreDirector.lookUpWorkingObject(Object)
.<E> E
lookUpWorkingObjectOrReturnNull
(E externalObject) As defined byScoreDirector.lookUpWorkingObjectOrReturnNull(Object)
.void
removeWorkingObject
(Object workingObject) void
reset()
-
Constructor Details
-
LookUpManager
-
-
Method Details
-
reset
public void reset() -
addWorkingObject
-
removeWorkingObject
-
lookUpWorkingObject
public <E> E lookUpWorkingObject(E externalObject) As defined byScoreDirector.lookUpWorkingObject(Object)
.- Type Parameters:
E
- the object type- Parameters:
externalObject
- sometimes null- Returns:
- null if externalObject is null
- Throws:
IllegalArgumentException
- if there is no workingObject for externalObject, if it cannot be looked up or if the externalObject's class is not supportedIllegalStateException
- if it cannot be looked up
-
lookUpWorkingObjectOrReturnNull
public <E> E lookUpWorkingObjectOrReturnNull(E externalObject) As defined byScoreDirector.lookUpWorkingObjectOrReturnNull(Object)
.- Type Parameters:
E
- the object type- Parameters:
externalObject
- sometimes null- Returns:
- null if externalObject is null or if there is no workingObject for externalObject
- Throws:
IllegalArgumentException
- if it cannot be looked up or if the externalObject's class is not supportedIllegalStateException
- if it cannot be looked up
-