public final class Utils
extends java.lang.Object
Copyright (c) 2017 Nexusgeographics All rights reserved.
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
arrayToStringSeparated(java.util.List<java.lang.String> array,
java.lang.String separatedBy)
Array to string separated string.
|
static java.lang.String |
arrayToStringSeparated(java.lang.String[] strings,
java.lang.String separatedBy)
Array to string separated string.
|
static <T> T |
checkNonNull(T reference)
Throw NonNullException if reference is null.
|
static float |
distance(LatLng arg0,
LatLng arg1)
Distance between two LatLon
|
static org.osgeo.proj4j.ProjCoordinate |
transformGeographicsToMercator(LatLng source)
transform Geographics coordinates to Mercator
|
static LatLng |
transformMercatorToGeographics(org.osgeo.proj4j.ProjCoordinate source)
transform Mercator coordinates to Geographics
|
public static <T> T checkNonNull(T reference)
T
- reference object to checkreference
- object to checkpublic static java.lang.String arrayToStringSeparated(@Nullable java.lang.String[] strings, @NonNull java.lang.String separatedBy)
strings
- the stringsseparatedBy
- the separated bypublic static java.lang.String arrayToStringSeparated(@Nullable java.util.List<java.lang.String> array, @NonNull java.lang.String separatedBy)
array
- the arrayseparatedBy
- the separated bypublic static float distance(LatLng arg0, LatLng arg1)
arg0
- The LatLonarg1
- The LatLonpublic static org.osgeo.proj4j.ProjCoordinate transformGeographicsToMercator(LatLng source)
source
- The Geographics coordinatespublic static LatLng transformMercatorToGeographics(org.osgeo.proj4j.ProjCoordinate source)
source
- The Mercator coordinates