Package ball.game.sudoku
Class Cell
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<Integer>
-
- ball.game.sudoku.Digits
-
- ball.game.sudoku.Cell
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Integer>,Collection<Integer>,NavigableSet<Integer>,Set<Integer>,SortedSet<Integer>
public class Cell extends Digits
SudokuCell.- Author:
- Allen D. Ball
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Cell()Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisIn(Iterable<?> iterable)booleanisSolved()Integermax()Integermin()Integersolution()StringtoString()-
Methods inherited from class java.util.TreeSet
ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
UNKNOWN
public static final String UNKNOWN
UNKNOWN= "."- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Cell
public Cell()
Sole constructor. Construct with all possible digits.
-
-
Method Detail
-
min
public Integer min()
- Returns:
- The minimum value of the
Cell. - See Also:
TreeSet.first()
-
max
public Integer max()
- Returns:
- The maximum value of the
Cell. - See Also:
TreeSet.last()
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<Integer>
-
-