get

abstract fun get(key: String): DataItem?

Gets the DataItem stored at the given key if there is one

Return

The DataItem or null

Parameters

key

The key for the required value


open fun <T> get(key: String, converter: DataItemConverter<T>): T?

Gets the DataItem stored at the given key if there is one, and uses the given converter to translate it into an instance of type T

Return

The DataItem or null

Parameters

key

The key for the required value

converter

The DataItemConverter implementation for converting the DataItem to the required type.