ParametricTypeMorphism

@ApiStatus.Experimental
interface ParametricTypeMorphism(source)

Generic interface for transforming GetSetters into GetSetters containing another type.

Inheritors

Functions

Link copied to clipboard
abstract fun apply(domain: Type, value: GetSetter<out Any>): GetSetter<out Any>
Transform an object from one type to another, wrapped into a GetSetter
Link copied to clipboard
abstract fun codomain(domain: Type): Optional<Type>
For a given type, return what type this morphism transform each object into.