public class WellCoordinateFormatter extends Object implements Formatter<Integer>
Modifier and Type | Field and Description |
---|---|
private boolean |
toAlpha |
Constructor and Description |
---|
WellCoordinateFormatter(boolean toAlpha)
Create a well coordinate formatter.
|
public WellCoordinateFormatter(boolean toAlpha)
toAlpha
- TRUE to convert to alphabetic coordinates, FALSE
to convert from 0-based to 1-based coordinatespublic String format(Integer value)
Formatter
public Integer parseString(String value)
Formatter
parseString
in interface Formatter<Integer>
value
- The string to parse