Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.data/DataItemConverter

DataItemConverter

fun interface DataItemConverter<T>

Classes that implement this interface should be able to reconstruct an object of type T from a given DataItem - on the assumption that the DataItem does accurately describe all components required to create a new instance of type T

This is typically a reciprocal implementation of a DataItemConvertible; such that semi-complex types can be accurately described by a structured format such as DataList or DataObject using an instance of a DataItemConvertible and subsequently recreated if necessary using an the appropriate implementation of DataItemConverter

See also

DataItemConvertible

Inheritors

Converter
Converter
Converter
Converter
Converter
Converter
Converter
Converter
Converter
Converter
Converter
Converter

Functions

convert
Link copied to clipboard
abstract fun convert(dataItem: DataItem): T?

Should return an instance of T using the data provided by dataItem.

Generated by Dokka
(c) Tealium 2026