Transformer

interface Transformer<Value>

Interface for transforming values to and from string representation.

Used by TransformableTextField to handle conversion between typed values and their string representation for text field input/output.

Parameters

Value

The type of value being transformed

Inheritors

Functions

Link copied to clipboard
abstract fun fromString(string: String): Value

Converts a string back to a typed value.

Link copied to clipboard
abstract fun toString(value: Value): String

Converts a value to its string representation.