Converter

interface Converter<L, R>

A type for two-way conversion between a left type L and right type R. As a general convention, left is for types which are closer to user code and business logic. Conversely, right is for types which are farther from user code and business logic. Alternatively, one may think of left types as "my" types and right types as "their" types. Note that these distinctions are often subjective so consult documentation in the library which uses this converter for more details and context.

Type Parameters

L

The left type

R

The right type

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun convertLeft(from: R): L

Converts a right value into a left value

Link copied to clipboard
abstract fun convertRight(from: L): R

Converts a left value into a right value