protected ApplicationState removePartition(Integer partition)
{
- ApplicationState state =
- new ApplicationState(
- this.next.get(partition),
- this.state.remove(partition).getState());
-
+ ApplicationState state = getState(partition);
this.next.remove(partition);
-
+ this.state.remove(partition);
return state;
}
return state;
}
- public AdderBusinessLogic getState(Integer partition)
+ public ApplicationState getState(Integer partition)
{
- return state.get(partition);
+ return
+ new ApplicationState(
+ this.next.get(partition),
+ this.state.get(partition).getState());
}
}