public class IOMatrix<T extends IOCell> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Pair<Integer,Integer>,T> |
cells |
protected int |
maxColumn |
protected int |
maxRow |
protected String |
name |
| Constructor and Description |
|---|
IOMatrix() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
flattenCells() |
T |
getCell(int row,
int column) |
String |
getName() |
int |
getNumberOfColumns() |
int |
getNumberOfRows() |
boolean |
isPositionOccupied(int row,
int column) |
IOMatrix<T> |
setCell(T cell,
int row,
int column) |
IOMatrix |
setName(String name) |
List<String[]> |
toList() |
String |
toString() |
void |
transpose() |
protected String name
protected int maxRow
protected int maxColumn
public String getName()
public T getCell(int row, int column)
public int getNumberOfRows()
public int getNumberOfColumns()
public boolean isPositionOccupied(int row,
int column)
public void transpose()
public void flattenCells()
Copyright © 2016. All rights reserved.