refractoring
All checks were successful
Linux arm64 / Build (push) Successful in 33s

This commit is contained in:
Janet-Doe
2025-01-21 13:49:22 +01:00
parent 5a07f9347c
commit e5618b70c1
8 changed files with 60 additions and 36 deletions

View File

@@ -3,11 +3,11 @@ package sudoku;
public abstract class Cell {
protected static int NOSYMBOLE = -1;
protected int symboleIndex;
protected int symbolIndex;
protected Block block = null;
public Cell(int symboleIndex) {
this.symboleIndex = symboleIndex;
public Cell(int symbolIndex) {
this.symbolIndex = symbolIndex;
}
/**
@@ -17,8 +17,8 @@ public abstract class Cell {
this(NOSYMBOLE);
}
public int getSymboleIndex() {
return symboleIndex;
public int getSymbolIndex() {
return symbolIndex;
}
public Block getBlock() {
@@ -33,7 +33,7 @@ public abstract class Cell {
@Override
public boolean equals(Object obj) {
if (obj instanceof Cell otherCell)
return otherCell.getSymboleIndex() == this.getSymboleIndex();
return otherCell.getSymbolIndex() == this.getSymbolIndex();
return false;
}
}