|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.sudoku.BoardInventory
public class BoardInventory
Serializable Inventory object that keeps track of all the different Boards saved into their own ArrayList.
| Constructor Summary | |
|---|---|
BoardInventory()
Initializes each ArrayList of Boards |
|
| Method Summary | |
|---|---|
void |
add(Board board)
Adds a Board to the Inventory |
Board |
get(BoardDifficulties difficulty)
Gets a random Board at the specified difficulty. |
Board |
get(int ID)
Gets a Board with the specified ID number. |
java.util.ArrayList<Board> |
getEasyBoards()
Returns the Easy Boards |
java.util.ArrayList<Board> |
getHardBoards()
Returns the Hard Boards |
java.util.ArrayList<Board> |
getHarderBoards()
Returns the Harder Boards |
java.util.ArrayList<Board> |
getMediumBoards()
Returns the Medium Boards |
java.util.ArrayList<Board> |
getSuperEasyBoards()
Returns the Super Easy Boards |
java.util.ArrayList<Board> |
getSuperHardBoards()
Returns the Super Hard Boards |
java.util.ArrayList<Board> |
getVeryEasyBoards()
Returns the Very Easy Boards |
java.util.ArrayList<Board> |
getVeryHardBoards()
Returns the Very Hard Boards |
int |
indexOf(Board board)
Returns the first index of the specified Board in the Inventory |
int |
individualSize()
Returns the individual size of each difficulty level in the Inventory |
int |
totalSize()
Returns the total size of the Inventory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoardInventory()
| Method Detail |
|---|
public int totalSize()
public int individualSize()
public int indexOf(Board board)
board - the Board to find the index ofpublic java.util.ArrayList<Board> getSuperEasyBoards()
public java.util.ArrayList<Board> getVeryEasyBoards()
public java.util.ArrayList<Board> getEasyBoards()
public java.util.ArrayList<Board> getMediumBoards()
public java.util.ArrayList<Board> getHardBoards()
public java.util.ArrayList<Board> getHarderBoards()
public java.util.ArrayList<Board> getVeryHardBoards()
public java.util.ArrayList<Board> getSuperHardBoards()
public Board get(BoardDifficulties difficulty)
difficulty - the difficulty of the Board to getpublic Board get(int ID)
ID - the ID number of the Board to getpublic void add(Board board)
board - the Board to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||