C - the content type of the cell.public class Cell<C>
extends java.lang.Object
| Constructor and Description |
|---|
Cell(int x,
int y,
C content)
Construct a Cell.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
C |
getContent() |
int |
getX() |
int |
getY() |
int |
hashCode() |
void |
setContent(C content)
Set the cell's content.
|
java.lang.String |
toString() |
public Cell(int x,
int y,
C content)
x - the x position of the cell.y - the y position of the cell.content - the initial content of the cell.public int getX()
public int getY()
public C getContent()
public void setContent(C content)
content - the content to be placed in the cell.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object