Package sudoku.core

Class SudokuUtils

java.lang.Object
sudoku.core.SudokuUtils

public class SudokuUtils
extends java.lang.Object
Author:
Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Summary

    Constructors 
    Constructor Description
    SudokuUtils()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.Iterable<java.util.Collection<Square>> allUnits()  
    static java.util.Map<Square,​java.util.SortedSet<java.lang.Integer>> deepCopyOf​(java.util.Map<Square,​java.util.SortedSet<java.lang.Integer>> other)  
    static java.util.Collection<Square> getBoxUnit​(int row, int column)  
    static java.util.Collection<Square> getColumnUnit​(int column)  
    static java.util.Collection<Square> getRowUnit​(int row)  
    static java.lang.Iterable<java.util.Collection<Square>> getUnitsForSquare​(Square square)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • deepCopyOf

      public static java.util.Map<Square,​java.util.SortedSet<java.lang.Integer>> deepCopyOf​(java.util.Map<Square,​java.util.SortedSet<java.lang.Integer>> other)
    • getBoxUnit

      public static java.util.Collection<Square> getBoxUnit​(int row, int column)
    • getRowUnit

      public static java.util.Collection<Square> getRowUnit​(int row)
    • getColumnUnit

      public static java.util.Collection<Square> getColumnUnit​(int column)
    • allUnits

      public static java.lang.Iterable<java.util.Collection<Square>> allUnits()
    • getUnitsForSquare

      public static java.lang.Iterable<java.util.Collection<Square>> getUnitsForSquare​(Square square)