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 intcompareTo(WellPosition other)booleanequals(java.lang.Object obj)intgetWellColumn()well column, starts from 1intgetWellRow()well row, starts from 1inthashCode()static WellPositionparseWellPosition(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.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(WellPosition other)
- Specified by:
compareToin interfacejava.lang.Comparable<WellPosition>
-
-