package anabalica.github.io.meowletters.letters;

/**
 * Represents a cell of a grid found out by its coordinates: row and column.
 *
 * @author Ana Balica
 */
public class Cell {
    private int row;
    private int column;

    public Cell(int row, int column) {
        this.row = row;
        this.column = column;
    }

    public int getRow() {
        return row;
    }

    public int getColumn() {
        return column;
    }
}

@@ -270,22 +270,19 @@
     
-this.row = 
+setRow(
 row
+)
 ;%0A  
@@ -291,28 +291,25 @@
     
-this.c
+setC
 olumn
- = 
+(
 column
+)
 ;%0A  
@@ -391,24 +391,24 @@
 tColumn() %7B%0A
-
         retu
@@ -423,11 +423,886 @@
 n;%0A    %7D
+%0A%0A    public void setRow(int row) throws IllegalArgumentException %7B%0A        if (row %3C 0) %7B%0A            throw new IllegalArgumentException(%22Row can not be negative.%22);%0A        %7D%0A        this.row = row;%0A    %7D%0A%0A    public void setColumn(int column) throws IllegalArgumentException %7B%0A        if (column %3C 0) %7B%0A            throw new IllegalArgumentException(%22Column can not be negative.%22);%0A        %7D%0A        this.column = column;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        Cell cell = (Cell) o;%0A%0A        if (column != cell.column) return false;%0A        if (row != cell.row) return false;%0A%0A        return true;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = row;%0A        result = 31 * result + column;%0A        return result;%0A    %7D
 %0A%7D%0A

update Cell class