package de.gymnew.sudoku.model;

import java.util.Set;

public class Field {

	private byte value; // 0 = undefined
	private Set<Byte> notes;
	private Row row;
	private Column col;
	private Block block;

	public byte getValue() {
		return value;
	}

	public void setValue(byte value) {
		this.value = value;
	}

	public Set<Byte> getNotes() {
		return notes;
	}

	public void addNote(byte b) {
		notes.add(b);
	}

	public boolean hasNote(byte b) {
		return notes.contains(b);
	}

	public boolean deleteNote(byte b) {
		return notes.remove(b);
	}

	public Row getRow() {
		return row;
	}

	public Column getCol() {
		return col;
	}

	public Block getBlock() {
		return block;
	}

}

@@ -53,16 +53,26 @@
 Set;%0D%0A%0D%0A
+//Singed%0D%0A
 public c
@@ -398,20 +398,23 @@
 %09public 
-void
+boolean
  addNote
@@ -427,16 +427,23 @@
 b) %7B%0D%0A%09%09
+return 
 notes.ad

return type of add function now booleanml