equal
deleted
inserted
replaced
132 } |
132 } |
133 |
133 |
134 public Set<Cell> findCells(CellContent content) { |
134 public Set<Cell> findCells(CellContent content) { |
135 Set<Cell> finded = new HashSet<Cell>(); |
135 Set<Cell> finded = new HashSet<Cell>(); |
136 for (int y = sizeY - 1; y >= 0; y--) { |
136 for (int y = sizeY - 1; y >= 0; y--) { |
137 for (int x = 0; x < sizeX - 1; x++) { |
137 for (int x = 0; x < sizeX; x++) { |
138 if (cells[x][y].getContent() == content) |
138 if (cells[x][y].getContent() == content) |
139 finded.add(cells[x][y]); |
139 finded.add(cells[x][y]); |
140 } |
140 } |
141 } |
141 } |
142 return finded; |
142 return finded; |