IdentityMapper

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun map(from: T): T

Map from to an instance of TO.

Link copied to clipboard
inline fun <FROM, TO> ObjectMappie<FROM, TO>.mapArray(from: Array<FROM>): Array<TO>

Map each element in from to an instance of TO.

Link copied to clipboard
open fun mapList(from: List<T>): List<T>

Map each element in from to an instance of TO.

Link copied to clipboard
open fun mapNullable(from: T?): T?

Map nullable from to an instance of TO.

Link copied to clipboard
open fun mapNullableList(from: List<T>?): List<T>?

Map each element in from to an instance of TO if from is not null.

Link copied to clipboard
open fun mapNullableSet(from: Set<T>?): Set<T>?

Map each element in from to an instance of TO if from is not null.

Link copied to clipboard
open fun mapSet(from: Set<T>): Set<T>

Map each element in from to an instance of TO.