mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
tested new methods .get/putProblemState
This commit is contained in:
parent
8c2e3ca210
commit
4e23697fc8
2 changed files with 32 additions and 1 deletions
|
|
@ -167,7 +167,8 @@ public class StateManager implements RouteAndActivityStateGetter, IterationStart
|
|||
}
|
||||
|
||||
<T> T getDefaultProblemState(StateId stateId, Class<T> type){
|
||||
return defaultProblemStates_.getState(stateId, type);
|
||||
if(defaultProblemStates_.containsKey(stateId)) return defaultProblemStates_.getState(stateId, type);
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue