You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
381 B
Java
21 lines
381 B
Java
package reactivestreams;
|
|
|
|
public class ColumnChecker extends DigitBlockChecker {
|
|
|
|
int column;
|
|
|
|
public ColumnChecker(int column) {
|
|
this.column = column;
|
|
}
|
|
|
|
@Override
|
|
protected boolean currentDigitApplies(int currentRow, int currentColumn) {
|
|
return currentColumn == column;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return getClass().getSimpleName() + " " + column;
|
|
}
|
|
}
|