MapLoadedData

data class MapLoadedData<out T>(val result: MapInstaller.LoadResult, val value: T? = null)

Wrapper for the data and result of the operation.

Constructors

Link copied to clipboard
constructor(result: MapInstaller.LoadResult, value: T? = null)

Properties

Link copied to clipboard

Whether the operation failed.

Link copied to clipboard

Whether the operation was successful.

Link copied to clipboard

result of the operation

Link copied to clipboard
val value: T? = null

loaded data of the operation is it was successful, otherwise null

Functions

Link copied to clipboard
fun getOrThrow(): T

Returns the loaded data if it wasn't null, otherwise throws NullPointerException.