public class MatrixOfList<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<T>[] |
grid |
int |
height |
int |
width |
| Constructor and Description |
|---|
MatrixOfList(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
createSingleList() |
java.util.List<T> |
get(int x,
int y) |
int |
getHeight() |
int |
getWidth() |
boolean |
isInBounds(int x,
int y) |
void |
reset() |
void |
reshape(int width,
int height) |
public java.util.List<T>[] grid
public int width
public int height
public void reshape(int width,
int height)
public void reset()
public java.util.List<T> get(int x, int y)
public int getWidth()
public int getHeight()
public java.util.List<T> createSingleList()
public boolean isInBounds(int x,
int y)