Package org.opennms.features.geocoder
Class GeocoderResult.Builder
- java.lang.Object
-
- org.opennms.features.geocoder.GeocoderResult.Builder
-
- Enclosing class:
- GeocoderResult
public static class GeocoderResult.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeocoderResult
build()
GeocoderResult.Builder
noResult()
GeocoderResult.Builder
withAddress(java.lang.String address)
GeocoderResult.Builder
withCoordinates(double lng, double lat)
GeocoderResult.Builder
withError(java.lang.String errorMessage)
GeocoderResult.Builder
withError(java.lang.Throwable t)
-
-
-
Method Detail
-
noResult
public GeocoderResult.Builder noResult()
-
withAddress
public GeocoderResult.Builder withAddress(java.lang.String address)
-
withCoordinates
public GeocoderResult.Builder withCoordinates(double lng, double lat)
-
withError
public GeocoderResult.Builder withError(java.lang.String errorMessage)
-
withError
public GeocoderResult.Builder withError(java.lang.Throwable t)
-
build
public GeocoderResult build()
-
-