public class WellCoordinateFormatter extends java.lang.Object implements Formatter<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
private boolean |
toAlpha |
Constructor and Description |
---|
WellCoordinateFormatter(boolean toAlpha)
Create a well coordinate formatter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Integer value)
Format a value by converting it to a string.
|
java.lang.Integer |
parseString(java.lang.String value)
Parse a string and return a value of the correct type.
|
public WellCoordinateFormatter(boolean toAlpha)
toAlpha
- TRUE to convert to alphabetic coordinates, FALSE
to convert from 0-based to 1-based coordinatespublic java.lang.String format(java.lang.Integer value)
Formatter
public java.lang.Integer parseString(java.lang.String value)
Formatter
parseString
in interface Formatter<java.lang.Integer>
value
- The string to parse