Package net.sf.basedb.util
Class Coordinate
java.lang.Object
net.sf.basedb.util.Coordinate
Util class for coordinate transformations in base.
- Version:
- 2.0
- Author:
- Enell
- Last modified
- $Date$
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Convert an alphanumeric coordinate to a numeric coordinate, case is unimportent.static String
numericToAlpha
(int i) Convert a numeric coordinate to an alphanumeric coordinate.
-
Constructor Details
-
Coordinate
public Coordinate()
-
-
Method Details
-
alphaToNumeric
Convert an alphanumeric coordinate to a numeric coordinate, case is unimportent.Coordinate conversion examaples Alphanumeric coordinate Numeric coordinate a 1 ... ... z 26 aa 27 ... ... az 52 ba 53 ... ... zz 702 aaa 703 - Parameters:
s
- The string representation of the alphanumeric coordinate.- Returns:
- The int representation of the numeric coordinate.
-
numericToAlpha
Convert a numeric coordinate to an alphanumeric coordinate. SeealphaToNumeric(String)
for details.- Parameters:
i
- The int representation of the numeric coordinate.- Returns:
- The string representation of the alphanumeric coordinate.
-