1
0
Fork 0
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:
oblonski 2014-03-26 12:41:47 +01:00
parent 8c2e3ca210
commit 4e23697fc8
2 changed files with 32 additions and 1 deletions

View file

@ -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;
}
/**