|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.FeatureCoordinate
public class FeatureCoordinate
Represents the coordinate of a feature on an array design. One coordinate is equal to another if the row and column match and if either the block number (if it is non-zero) or the meta row and meta column (if the block is zero) match.
Field Summary | |
---|---|
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 Summary | |
---|---|
FeatureCoordinate(Integer block,
Integer metaRow,
Integer metaColumn,
Integer row,
Integer column)
Create new object with the specified row and column. |
Method Summary | |
---|---|
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] |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int block
private final int metaRow
private final int metaColumn
private final int row
private final int column
Constructor Detail |
---|
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.Method Detail |
---|
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.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int getBlock()
public int getMetaRow()
public int getMetaColumn()
public int getColumn()
public int getRow()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |