AdaptableValue

interface AdaptableValue<T : InputValue<*>>

If a Value subclass is adaptable, it can be converted to another Value in case the parameter of the function it is passed to expects a different type.

For example, a DictionaryValue can be adapted to an IterableValue.

Parameters

T

type of the value to adapt to

Inheritors

Functions

Link copied to clipboard
abstract fun adapt(): T

Adapts the value to another type.