Class WellPosition
- java.lang.Object
-
- ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.WellPosition
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WellPosition>
@JsonObject("WellPosition") public class WellPosition extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<WellPosition>
Identifier of a well on a screening plate, contains row and column number.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WellPosition(int wellRow, int wellColumn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(WellPosition other)
boolean
equals(java.lang.Object obj)
int
getWellColumn()
well column, starts from 1int
getWellRow()
well row, starts from 1int
hashCode()
static WellPosition
parseWellPosition(java.lang.String wellDescription)
Parses a well position description of the form
.<row number> .<column number> static java.util.List<WellPosition>
parseWellPositions(java.lang.String wellPositionDescriptions)
Parses a white-space separated list of well position descriptions.java.lang.String
toString()
-
-
-
Method Detail
-
parseWellPositions
public static java.util.List<WellPosition> parseWellPositions(java.lang.String wellPositionDescriptions)
Parses a white-space separated list of well position descriptions. A well position description is of the form
.<row number> .<column number> - Throws:
java.lang.IllegalArgumentException
- in case of parsing error.- Since:
- 1.4
-
parseWellPosition
public static WellPosition parseWellPosition(java.lang.String wellDescription)
Parses a well position description of the form
.<row number> .<column number> - Throws:
java.lang.IllegalArgumentException
- in case of parsing error.- Since:
- 1.4
-
getWellRow
public int getWellRow()
well row, starts from 1
-
getWellColumn
public int getWellColumn()
well column, starts from 1
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(WellPosition other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<WellPosition>
-
-