Package net.sf.basedb.core.data
Class PlateCoordinate
java.lang.Object
net.sf.basedb.core.data.PlateCoordinate
- All Implemented Interfaces:
Serializable
This class defines a plate coordinate, which is row and column
on a plate. A
PlateCoordinate
object
is used by a PlateData
to specify the coordinates of wells.
The Serializable
interface must be implemented
because Hibernate requires it if we use it as a map key.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
The column number.private int
The row number.private static final long
-
Constructor Summary
ConstructorDescriptionCreate new object.PlateCoordinate
(int row, int column) Create newPlateCoordinate
with the specified row and column. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Check if this object is equal to anotherPlateCoordinateData
object.int
Get the column number.int
getRow()
Get the row number.final int
hashCode()
Calculate the hash code for the object.(package private) void
setColumn
(int column) Set the location.(package private) void
setRow
(int row) Set the row number.final String
toString()
Get the coordinate as [row, column]
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
row
private int rowThe row number. -
column
private int columnThe column number.
-
-
Constructor Details
-
PlateCoordinate
PlateCoordinate()Create new object. Used by Hibernate only. -
PlateCoordinate
public PlateCoordinate(int row, int column) Create newPlateCoordinate
with the specified row and column.
-
-
Method Details
-
equals
Check if this object is equal to anotherPlateCoordinateData
object. They are equal if both have the same plate, row and column. -
hashCode
public final int hashCode()Calculate the hash code for the object. -
toString
Get the coordinate as [row, column] -
getRow
public int getRow()Get the row number.- Hibernate: property
- column="`row`" type="int"
-
setRow
void setRow(int row) Set the row number. -
getColumn
public int getColumn()Get the column number.- Hibernate: property
- column="`column`" type="int"
-
setColumn
void setColumn(int column) Set the location.
-