<BUG>setAll(defaultVal);</BUG><CONTEXT>}public Map2D(int xSize, int ySize, E defaultVal) {this.xSize = xSize;this.ySize = ySize;values = new ArrayList<>(xSize*ySize);<extra_id_0>}public void set(int index, E val) {values.set(index, val);</CONTEXT>
public Map2D(int xSize, int ySize) {this(xSize, ySize, null);setAllAs(defaultVal);