Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard
open class ConverterChain<L, M, R>(first: Converter<L, M>, next: Converter<M, R>) : Converter<L, R>
Link copied to clipboard
class ConverterImpl<L, R>(convertRight: (L) -> R, convertLeft: (R) -> L) : Converter<L, R>

A simple Converter implementation backed by conversion functions.