FieldPassthroughAdapter

A passthrough adapter that performs no type conversion.

This adapter is used when the stored value type, validation target type, and input/display type are all the same. It simply returns the value unchanged for all conversion operations.

This is the default adapter used when no explicit adapter is provided to a form field.

Parameters

V

The type used for all representations (stored, validation, and input).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun fromInput(value: V, current: V): V

Converts the input/display value back to the stored value type.

Link copied to clipboard
open override fun toInput(value: V): V

Converts the stored value to the input/display type.

Link copied to clipboard
open override fun toValidationTarget(value: V): V

Converts the stored value to the validation target type.