package jetbrains.mps.baseLanguage.unitTest.execution.settings;

/*Generated by MPS */

import jetbrains.mps.project.structure.modules.Copyable;
import java.util.Map;
import java.util.HashMap;
import org.jetbrains.annotations.NotNull;

public class InProcessFlagPerScope implements Copyable<InProcessFlagPerScope> {
  private Map<Integer, Boolean> myRunType2InProcessFlag = new HashMap<Integer, Boolean>();

  public Map<Integer, Boolean> getRunType2InProcessFlag() {
    return myRunType2InProcessFlag;
  }

  public void setRunType2InProcessFlag(Map<Integer, Boolean> val) {
    myRunType2InProcessFlag = new HashMap<Integer, Boolean>(val);
  }

  @NotNull
  @Override
  public InProcessFlagPerScope copy() {
    InProcessFlagPerScope res = new InProcessFlagPerScope();
    res.myRunType2InProcessFlag.putAll(new HashMap<Integer, Boolean>(myRunType2InProcessFlag));
    return res;
  }

  public void put(int runType, boolean value) {
    myRunType2InProcessFlag.put(runType, value);
  }

  public boolean get(int runType) {
    return myRunType2InProcessFlag.get(runType);
  }

  public boolean containsKey(int runType) {
    return myRunType2InProcessFlag.containsKey(runType);
  }
}
