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

Extensions for kotlin.collections.Map

allA

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

fun <K, V> Map<K, V>.allA(predicate: (Entry<K, V>) -> Attribute<Boolean>): Attribute<Boolean>

anyA

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

fun <K, V> Map<K, V>.anyA(predicate: (Entry<K, V>) -> Attribute<Boolean>): Attribute<Boolean>

contains

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

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

containsKey

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

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

containsValue

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

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

countA

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

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

filterA

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

fun <K, V> Map<K, V>.filterA(predicate: (Entry<K, V>) -> Attribute<Boolean>): Attribute<Map<K, V>>

filterKeysA

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

fun <K, V> Map<K, V>.filterKeysA(predicate: (K) -> Attribute<Boolean>): Attribute<Map<K, V>>

filterNotA

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

fun <K, V> Map<K, V>.filterNotA(predicate: (Entry<K, V>) -> Attribute<Boolean>): Attribute<Map<K, V>>

filterValuesA

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

fun <K, V> Map<K, V>.filterValuesA(predicate: (V) -> Attribute<Boolean>): Attribute<Map<K, V>>

flatMapA

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

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

flatMapToSetA

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

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

get

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

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

getOrDefault

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

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

getOrElse

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

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

getOrElseA

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

fun <K, V> Map<K, V>.getOrElseA(key: Attribute<K>, defaultValue: (key: K) -> Attribute<V>): Attribute<V>
fun <K, V> Map<K, V>.getOrElseA(key: K, defaultValue: () -> Attribute<V>): Attribute<V>

getValue

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

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

mapA

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

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

mapKeysA

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

fun <K, V, R> Map<K, V>.mapKeysA(transform: (Entry<K, V>) -> Attribute<R>): Attribute<Map<R, V>>

mapNotNullA

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

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

mapNotNullToSetA

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

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

mapToSetA

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

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

mapValuesA

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

fun <K, V, R> Map<K, V>.mapValuesA(transform: (Entry<K, V>) -> Attribute<R>): Attribute<Map<K, R>>

maxByA

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

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

minByA

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

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

minus

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

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

noneA

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

fun <K, V> Map<K, V>.noneA(predicate: (Entry<K, V>) -> Attribute<Boolean>): Attribute<Boolean>

plus

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

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