Skip to content

Commit 3bdb5b8

Browse files
committed
saddle-points: rename column field for symmetry
1 parent f93b007 commit 3bdb5b8

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎exercises/saddle-points/src/example/java/MatrixCoordinate.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ final class MatrixCoordinate {
22

33
private final int row;
44

5-
private final int column;
5+
private final int col;
66

7-
MatrixCoordinate(final int row, final int column) {
7+
MatrixCoordinate(final int row, final int col) {
88
this.row = row;
9-
this.column = column;
9+
this.col = col;
1010
}
1111

1212
// Generated equals and hashcode.
@@ -18,13 +18,13 @@ public boolean equals(final Object o) {
1818

1919
final MatrixCoordinate that = (MatrixCoordinate) o;
2020

21-
return row == that.row && column == that.column;
21+
return row == that.row && col == that.col;
2222
}
2323

2424
@Override
2525
public int hashCode() {
2626
int result = row;
27-
result = 31 * result + column;
27+
result = 31 * result + col;
2828
return result;
2929
}
3030

‎exercises/saddle-points/src/main/java/MatrixCoordinate.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ final class MatrixCoordinate {
22

33
private final int row;
44

5-
private final int column;
5+
private final int col;
66

7-
MatrixCoordinate(final int row, final int column) {
7+
MatrixCoordinate(final int row, final int col) {
88
this.row = row;
9-
this.column = column;
9+
this.col = col;
1010
}
1111

1212
// Generated equals and hashcode.
@@ -18,13 +18,13 @@ public boolean equals(final Object o) {
1818

1919
final MatrixCoordinate that = (MatrixCoordinate) o;
2020

21-
return row == that.row && column == that.column;
21+
return row == that.row && col == that.col;
2222
}
2323

2424
@Override
2525
public int hashCode() {
2626
int result = row;
27-
result = 31 * result + column;
27+
result = 31 * result + col;
2828
return result;
2929
}
3030

0 commit comments

Comments
 (0)