uk.co.keang.sudoku
Class Puzzle.Cell
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
nums
java.util.Set<java.lang.Integer> nums
userEntered
boolean userEntered
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)
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