public class FeatureCoordinate extends Object
Modifier and Type | Field and Description |
---|---|
private int |
block |
private int |
column
The column of this feature.
|
private int |
metaColumn |
private int |
metaRow |
private int |
row
The row of this feature.
|
Constructor and Description |
---|
FeatureCoordinate(Integer block,
Integer metaRow,
Integer metaColumn,
Integer row,
Integer column)
Create new object with the specified row and column.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Check if this object is equal to another
FeatureCoordinate
object. |
int |
getBlock() |
int |
getColumn() |
int |
getMetaColumn() |
int |
getMetaRow() |
int |
getRow() |
int |
hashCode()
Calculate the hash code for the object.
|
String |
toString()
Get the coordinate as [block, row, column] or
[metarow, metacolumn, row, column]
|
private final int block
private final int metaRow
private final int metaColumn
private final int row
private final int column
public FeatureCoordinate(Integer block, Integer metaRow, Integer metaColumn, Integer row, Integer column)
block
- Block number the feature belongs to.metaRow
- Meta row numbermetaColumn
- Meta column numberrow
- Row number of the featurecolumn
- Column number of the feature.public boolean equals(Object o)
FeatureCoordinate
object. For non-zero block number they are equal if the block, row and column
match, otherwise they are equal if the metarow, metacolumn, row and column
match.public int hashCode()
public String toString()
public int getBlock()
public int getMetaRow()
public int getMetaColumn()
public int getColumn()
public int getRow()