Documentation / dataflow / com.femastudios.dataflow.util / mapFieldOf
Go to reference

mapFieldOf

fun <K, V> mapFieldOf(): Field<Map<K, V>>

Returns a constant Field that holds an empty Map

See Also

fieldOf

ConstantField

Map


fun <K, V> mapFieldOf(element: Pair<K, V>): Field<Map<K, V>>

Returns a constant Field that holds a Map containing the given key and value (expressed as a Pair)

See Also

fieldOf

ConstantField

Map

mapOf


fun <K, V> mapFieldOf(vararg elements: Pair<K, V>): Field<Map<K, V>>

Returns a constant Field that holds a Map containing the given keys and values (expressed as Pairs)

See Also

fieldOf

ConstantField

Map

mapOf