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