public MapState( int iterationNum, IterationConfig cfg, IterationProgress progress ) { this.iterationNum = iterationNum; this.cfg = cfg; this.progress = progress; }
public MapState withConfig(IterationConfig cfg) => new MapState(iterationNum, cfg, progress);