uk.co.keang.sudoku
Class Puzzle.Cell

java.lang.Object
  extended by uk.co.keang.sudoku.Puzzle.Cell
All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>
Enclosing class:
Puzzle

public static class Puzzle.Cell
extends java.lang.Object
implements java.lang.Iterable<java.lang.Integer>


Field Summary
(package private)  java.util.Set<java.lang.Integer> nums
           
(package private)  boolean userEntered
           
 
Constructor Summary
Puzzle.Cell()
           
Puzzle.Cell(java.util.Collection<java.lang.Integer> c)
           
Puzzle.Cell(Puzzle.Cell cell)
           
 
Method Summary
 void add(java.lang.Integer num)
           
 void addAll(Puzzle.Cell set)
           
 void clear()
           
 boolean contains(java.lang.Integer val)
           
 boolean containsAll(Puzzle.Cell cell)
           
 void copy(Puzzle.Cell set)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer firstValue()
           
 java.util.Collection<java.lang.Integer> getCollection()
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Iterator<java.lang.Integer> iterator()
           
 void remove(java.lang.Integer num)
           
 void removeAll(Puzzle.Cell knownVals)
           
 void retainAll(Puzzle.Cell retainVals)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nums

java.util.Set<java.lang.Integer> nums

userEntered

boolean userEntered
Constructor Detail

Puzzle.Cell

public Puzzle.Cell()

Puzzle.Cell

public Puzzle.Cell(java.util.Collection<java.lang.Integer> c)

Puzzle.Cell

public Puzzle.Cell(Puzzle.Cell cell)
Method Detail

clear

public void clear()

size

public int size()

isEmpty

public boolean isEmpty()

contains

public boolean contains(java.lang.Integer val)

containsAll

public boolean containsAll(Puzzle.Cell cell)

add

public void add(java.lang.Integer num)

addAll

public void addAll(Puzzle.Cell set)

copy

public void copy(Puzzle.Cell set)

remove

public void remove(java.lang.Integer num)

removeAll

public void removeAll(Puzzle.Cell knownVals)

firstValue

public java.lang.Integer firstValue()

iterator

public java.util.Iterator<java.lang.Integer> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.Integer>

retainAll

public void retainAll(Puzzle.Cell retainVals)

getCollection

public java.util.Collection<java.lang.Integer> getCollection()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object