Utils

open class Utils

Utils

Collection of miscelaneous helper methods

Author

Jose J Varó - Copyright © 2017 MapsPeople A/S. All rights reserved.

Functions

Link copied to clipboard
@Nullable
open fun <T> castAs(@NonNull t: Class<T>, @Nullable o: Any): T
Link copied to clipboard
@NonNull
open fun CoordToString(value: Double): String
Converts the given coordinate value to its string form with 8 digits precision Use this method to avoid conversions such as 0.0009087344578802 (double) to "9.
@NonNull
open fun CoordToString(lat: Double, lng: Double): String
@NonNull
open fun CoordToString(    lat: Double,     lng: Double,     z: Double): String
@NonNull
open fun CoordToString(    lat: Double,     lng: Double,     z: Int): String
Converts the given coordinate values to a single string with 8 digits precision each Use this method to avoid conversions such as 0.0009087344578802 (double) to "9.
Link copied to clipboard
open fun isNullOrEmpty(@Nullable c: Collection<out Any>): Boolean
open fun isNullOrEmpty(@Nullable map: Map<out Any, out Any>): Boolean