Package org.djutils.cli
Class TestCLIRegisterConverter.LatLon
- java.lang.Object
-
- org.djutils.cli.TestCLIRegisterConverter.LatLon
-
- Enclosing class:
- TestCLIRegisterConverter
public static class TestCLIRegisterConverter.LatLon extends Object
lat/lon object that can be parsed.
-
-
Constructor Summary
Constructors Constructor Description LatLon(double lat, double lon)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLat()
double
getLon()
static TestCLIRegisterConverter.LatLon
of(String latlon)
parse a string of the form (lat, lon).
-
-
-
Method Detail
-
getLat
public double getLat()
- Returns:
- lat
-
getLon
public double getLon()
- Returns:
- lon
-
of
public static TestCLIRegisterConverter.LatLon of(String latlon) throws RuntimeException
parse a string of the form (lat, lon).- Parameters:
latlon
- the string to parse- Returns:
- the LatLon object
- Throws:
RuntimeException
- on error
-
-