ça part
All checks were successful
Linux arm64 / Build (push) Successful in 25s

This commit is contained in:
2025-01-21 17:13:46 +01:00
parent ed1dc0e742
commit 64a2dca1b0
9 changed files with 256 additions and 16 deletions

View File

@@ -1,8 +1,11 @@
package sudoku;
import com.fasterxml.jackson.annotation.JsonProperty;
public abstract class Cell {
protected static int NOSYMBOLE = -1;
@JsonProperty("symboleIndex")
protected int symboleIndex;
protected Block block = null;
@@ -25,15 +28,15 @@ public abstract class Cell {
return this.block;
}
// only SudokuFactory should access this
void setBlock(Block block) {
// only SudokuFactory and SudokuSerializer should access this
public void setBlock(Block block) {
this.block = block;
}
@Override
public boolean equals(Object obj) {
if (obj instanceof Cell otherCell)
return otherCell.getSymboleIndex() == this.getSymboleIndex();
return false;
}
// @Override
// public boolean equals(Object obj) {
// if (obj instanceof Cell otherCell)
// return otherCell.getSymboleIndex() == this.getSymboleIndex();
// return false;
// }
}