public class Grid<E> extends Object
Constructor and Description |
---|
Grid(int rows,
int cols) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
fill(E value) |
E |
get(int row,
int col) |
int |
hashCode() |
int |
height() |
boolean |
inBounds(int row,
int col) |
boolean |
isEmpty() |
int |
numCols() |
int |
numRows() |
void |
resize(int rows,
int cols) |
void |
set(int row,
int col,
E value) |
int |
size() |
String |
toString() |
String |
toString2D() |
String |
toString2D(String rowStart,
String rowEnd,
String colSeparator,
String rowSeparator) |
int |
width() |
public void fill(E value)
public E get(int row, int col)
public int height()
public boolean inBounds(int row, int col)
public boolean isEmpty()
public int numCols()
public int numRows()
public void resize(int rows, int cols)
public void set(int row, int col, E value)
public int size()
public String toString2D()
public String toString2D(String rowStart, String rowEnd, String colSeparator, String rowSeparator)
public int width()