Documentation / dataflow / com.femastudios.dataflow.extensions / kotlin.collections.Map
Go to reference

Extensions for kotlin.collections.Map

allF

Same as all, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.allF(predicate: (Entry<K, V>) -> Field<Boolean>): Field<Boolean>

anyF

Same as any, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.anyF(predicate: (Entry<K, V>) -> Field<Boolean>): Field<Boolean>

contains

Same as contains, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.contains(key: Field<K>): Field<Boolean>

containsKey

Same as containsKey, but accepts Field and returns a new Field.

fun <K> Map<in K, *>.containsKey(key: Field<K>): Field<Boolean>

containsValue

Same as containsValue, but accepts Field and returns a new Field.

fun <V> Map<*, V>.containsValue(value: Field<V>): Field<Boolean>

countF

Same as count, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.countF(predicate: (Entry<K, V>) -> Field<Boolean>): Field<Int>

filterF

Same as filter, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.filterF(predicate: (Entry<K, V>) -> Field<Boolean>): Field<Map<K, V>>

filterKeysF

Same as filterKeys, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.filterKeysF(predicate: (K) -> Field<Boolean>): Field<Map<K, V>>

filterNotF

Same as filterNot, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.filterNotF(predicate: (Entry<K, V>) -> Field<Boolean>): Field<Map<K, V>>

filterValuesF

Same as filterValues, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.filterValuesF(predicate: (V) -> Field<Boolean>): Field<Map<K, V>>

flatMapF

Same as flatMap, but accepts Field and returns a new Field.

fun <K, V, R> Map<K, V>.flatMapF(transform: (Entry<K, V>) -> Field<Iterable<R>>): Field<List<R>>

flatMapToSetF

Same as flatMapToSet, but accepts Field and returns a new Field.

fun <K, V, R> Map<K, V>.flatMapToSetF(transform: (Entry<K, V>) -> Field<Iterable<R>>): Field<Set<R>>

get

Same as get, but accepts Field and returns a new Field.

operator fun <K, V> Map<in K, V>.get(key: Field<K>): Field<V?>

getOrDefault

Same as getOrDefault, but accepts Field and returns a new Field.

fun <K, V> Map<in K, V>.getOrDefault(key: K, defaultValue: Field<V>): Field<V>
fun <K, V> Map<in K, V>.getOrDefault(key: Field<K>, defaultValue: V): Field<V>
fun <K, V> Map<in K, V>.getOrDefault(key: Field<K>, defaultValue: Field<V>): Field<V>

getOrElse

Same as getOrElse, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.getOrElse(key: Field<K>, defaultValue: () -> V): Field<V>

getOrElseF

Same as getOrElse, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.getOrElseF(key: Field<K>, defaultValue: (key: K) -> Field<V>): Field<V>
fun <K, V> Map<K, V>.getOrElseF(key: K, defaultValue: () -> Field<V>): Field<V>

getValue

Same as getValue, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.getValue(key: Field<K>): Field<V>

mapF

Same as map, but accepts Field and returns a new Field.

fun <K, V, R> Map<K, V>.mapF(transform: (Entry<K, V>) -> Field<R>): Field<List<R>>

mapKeysF

Same as mapKeys, but accepts Field and returns a new Field.

fun <K, V, R> Map<K, V>.mapKeysF(transform: (Entry<K, V>) -> Field<R>): Field<Map<R, V>>

mapNotNullF

Same as mapNotNull, but accepts Field and returns a new Field.

fun <K, V, R : Any> Map<K, V>.mapNotNullF(transform: (Entry<K, V>) -> Field<R?>): Field<List<R>>

mapNotNullToSetF

Same as mapNotNullToSet, but accepts Field and returns a new Field.

fun <K, V, R : Any> Map<K, V>.mapNotNullToSetF(transform: (Entry<K, V>) -> Field<R?>): Field<Set<R>>

mapToSetF

Same as mapToSet, but accepts Field and returns a new Field.

fun <K, V, R> Map<K, V>.mapToSetF(transform: (Entry<K, V>) -> Field<R>): Field<Set<R>>

mapValuesF

Same as mapValues, but accepts Field and returns a new Field.

fun <K, V, R> Map<K, V>.mapValuesF(transform: (Entry<K, V>) -> Field<R>): Field<Map<K, R>>

maxByF

Same as maxBy, but accepts Field and returns a new Field.

fun <K, V, R : Comparable<R>> Map<K, V>.maxByF(selector: (Entry<K, V>) -> Field<R>): Field<Entry<K, V>?>

minByF

Same as minBy, but accepts Field and returns a new Field.

fun <K, V, R : Comparable<R>> Map<K, V>.minByF(selector: (Entry<K, V>) -> Field<R>): Field<Entry<K, V>?>

minus

Same as minus, but accepts Field and returns a new Field.

operator fun <K, V> Map<K, V>.minus(keys: Field<Array<out K>>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.minus(key: Field<K>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.minus(keys: Field<Sequence<K>>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.minus(keys: Field<Iterable<K>>): Field<Map<K, V>>

noneF

Same as none, but accepts Field and returns a new Field.

fun <K, V> Map<K, V>.noneF(predicate: (Entry<K, V>) -> Field<Boolean>): Field<Boolean>

plus

Same as plus, but accepts Field and returns a new Field.

operator fun <K, V> Map<K, V>.plus(pairs: Field<Array<out Pair<K, V>>>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.plus(pairs: Field<Iterable<Pair<K, V>>>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.plus(pair: Field<Pair<K, V>>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.plus(pairs: Field<Sequence<Pair<K, V>>>): Field<Map<K, V>>
operator fun <K, V> Map<K, V>.plus(map: Field<Map<out K, V>>): Field<Map<K, V>>