ISupportConverter

interface ISupportConverter<M, E>

Contract for type converter

Since

1.3.0

Parameters

M

generic type of interchangeable type which can be mapped to and from

E

generic type of interchangeable type which can be mapped to and from

Inheritors

Functions

Link copied to clipboard
abstract fun convertFrom(item: M): E

Convert from a single type M to E

open fun convertFrom(items: Collection<M>): List<E>

Convert from Collection types of M to E

Link copied to clipboard
abstract fun convertTo(item: E): M

Convert from a single type E to M

open fun convertTo(items: Collection<E>): List<M>

Convert to Collection types of E to M