public abstract class WellPrecursor<T extends Number> extends Object implements Comparable<WellPrecursor<T>>
Row |
Column |
Input |
|---|---|---|
| Integer | Integer | Row = 1 Column = 2 |
| String | Integer | Row = "1" Column = 2 |
| String | Integer | Row = "A" Column = 2 |
| Integer | String | Row = 1 Column = "2" |
| String | String | Row = "A" Column = "2" |
| String | String | Row = "1" Column = "2" |
| String | String | "A2" Input must be [A-Za-z]+[0-9]+ |
| Modifier and Type | Field and Description |
|---|---|
static int |
BIGDECIMAL |
static int |
BIGINTEGER |
static int |
DOUBLE |
static int |
INTEGER |
| Constructor and Description |
|---|
WellPrecursor(int type,
int row,
int column)
Creates a new Well object from row and column integers.
|
WellPrecursor(int type,
int row,
String column)
Creates a new Well object using the numerical type flag, row number and
column string.
|
WellPrecursor(int type,
String wellID)
Creates a new Well object from a string holding the column and row values.
|
WellPrecursor(int type,
String row,
int column)
Creates a new Well object using the numerical type flag, row string and
column number.
|
WellPrecursor(int type,
String row,
String column)
Creates a new Well object using the numerical type flag, row and column
strings.
|
WellPrecursor(WellPrecursor<T> well)
Clones a well without invoking clone.
|
| Modifier and Type | Method and Description |
|---|---|
int |
alphaBase()
Returns the alpha base value.
|
int |
column()
Returns the column number.
|
int |
compareTo(WellPrecursor<T> well)
Wells are ordered based on row and column number.
|
abstract List<T> |
data() |
int |
hashCode()
Hash code uses the row, column and ALPHA_BASE fields.
|
String |
index()
Returns the well index as a letter(s) number pair.
|
int |
row()
Returns the row number.
|
String |
rowString()
Returns the row ID.
|
String |
toString()
Returns row ID plus column number.
|
int |
type()
Returns the numerical data type as an integer value.
|
String |
typeString()
Returns the numerical data type as a String.
|
public static final int DOUBLE
public static final int INTEGER
public static final int BIGDECIMAL
public static final int BIGINTEGER
public WellPrecursor(int type,
int row,
int column)
int - the well rowint - the well columnpublic WellPrecursor(int type,
String row,
int column)
int - the numerical data typeString - the well rowint - the well columnpublic WellPrecursor(int type,
int row,
String column)
int - the numerical data typeint - the well rowString - the well columnIllegalArgumentException - invalid column valuepublic WellPrecursor(int type,
String row,
String column)
int - the numerical data typeString - the well rowString - the well columnIllegalArgumentException - invalid column valuepublic WellPrecursor(int type,
String wellID)
int - the numerical data typeString - the well indexpublic WellPrecursor(WellPrecursor<T> well)
WellPrecursor - the well to clonepublic String index()
public int type()
public String typeString()
public int column()
public int row()
public int alphaBase()
public String rowString()
public String toString()
public int hashCode()
public int compareTo(WellPrecursor<T> well) throws ClassCastException
compareTo in interface Comparable<WellPrecursor<T extends Number>>WellPrecursor - the object for comparisonClassCastExceptionCopyright © 2017. All rights reserved.