V
- the type of the valueImmutableCell
public static interface Grid.Cell<V>
Modifier and Type | Method | Description |
---|---|---|
boolean |
equalRowColumn(int row,
int column) |
Checks if the row-column of this cell matches the specified row and column.
|
boolean |
equals(java.lang.Object obj) |
Checks if this cell equals another cell.
|
boolean |
equalValue(java.lang.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.
|
int getRow()
int getColumn()
V getValue()
boolean equalRowColumn(int row, int column)
row
- the row to checkcolumn
- the column to checkboolean equalValue(java.lang.Object value)
value
- the row to check, null returns falseboolean equals(java.lang.Object obj)
Two cells are equal if they have equal row, column and value.
equals
in class java.lang.Object
obj
- the object to compare to, null returns falseint hashCode()
The hash code is row ^ Integer.rotateLeft(column, 16) ^ value.hashCode()
.
hashCode
in class java.lang.Object
Copyright © 2014–2017 Joda.org. All rights reserved.