public class LatLonFormatCompact extends Object implements LatLonFormat
Constructor and Description |
---|
LatLonFormatCompact(int nDecimals)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
format(LatLonGeo latLon) |
LatLonGeo |
parse(String s) |
static LatLonGeo |
parseToLatLonGeo(String s) |
public LatLonFormatCompact(int nDecimals)
nDecimals
- number of decimal places to be shown for each of lat and lon (equivalent
to using formatString "%.[nDecimals]f")public String format(LatLonGeo latLon)
format
in interface LatLonFormat
public LatLonGeo parse(String s) throws LatLonFormatParseException
parse
in interface LatLonFormat
LatLonFormatParseException
public static LatLonGeo parseToLatLonGeo(String s) throws LatLonFormatParseException
LatLonFormatParseException
Copyright © 2016 Metron, Inc.. All rights reserved.