|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
V - the type of the valuepublic static interface Grid.Cell<V>
A cell within the grid compared only using row and column.
| Method Summary | |
|---|---|
boolean |
equalRowColumn(int row,
int column)
Checks if the row-column of this cell matches the specified row and column. |
boolean |
equals(Object obj)
Checks if this cell equals another cell. |
boolean |
equalValue(Object value)
Checks if the value of this cell matches the specified value. |
int |
getColumn()
Gets the column index. |
int |
getRow()
Gets the row index. |
V |
getValue()
Gets the value of the cell. |
int |
hashCode()
Gets a suitable hash code. |
| Method Detail |
|---|
int getRow()
int getColumn()
V getValue()
boolean equalRowColumn(int row,
int column)
row - the row to checkcolumn - the column to check
boolean equalValue(Object value)
value - the row to check, null returns false
boolean equals(Object obj)
Two cells are equal if they have equal row, column and value.
equals in class Objectobj - the object to compare to, null returns false
int hashCode()
The hash code is row ^ Integer.rotateLeft(column, 16) ^ value.hashCode().
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||