Mapper

interface Mapper<T : Any, V : Any>

An interface to convert data of type T into V.

Use this to map custom data types to a type that can be handled by a Fetcher.

Functions

handles
Link copied to clipboard
open fun handles(data: T): Boolean

Return true if this can convert data.

map
Link copied to clipboard
abstract fun map(data: T): V

Convert data into V.