Package org.bremersee.geojson.model
Interface LatLonAware
- All Known Implementing Classes:
LatitudeLongitude,LatLon
public interface LatLonAware
The interface lat lon aware.
- Author:
- Christian Bremer
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe builder interface.static classThe builder implementation. -
Method Summary
Modifier and TypeMethodDescriptionstatic LatLonAware.Builderbuilder()Returns a new builder.Gets latitude.Gets longitude.default booleanDetermines whether latitude and longitude have values.default StringTo comma separated latitude longitude string.default StringTo comma separated longitude latitude string.
-
Method Details
-
getLatitude
BigDecimal getLatitude()Gets latitude.- Returns:
- the latitude
-
getLongitude
BigDecimal getLongitude()Gets longitude.- Returns:
- the longitude
-
hasValues
default boolean hasValues()Determines whether latitude and longitude have values.- Returns:
trueif latitude and longitude is notnull, otherwisefalse
-
toLatLonString
To comma separated latitude longitude string.- Returns:
- the string
-
toLonLatString
To comma separated longitude latitude string.- Returns:
- the string
-
builder
Returns a new builder.- Returns:
- the builder
-