-
public final class MapKt
-
-
Method Summary
Modifier and Type Method Description final static <K extends Any, V extends Any> VstreamComputeIfAbsent(ConcurrentMap<K, V> $self, K key, Function0<V> defaultValue)Computes the value for the given key if it is not already present in the map. -
-
Method Detail
-
streamComputeIfAbsent
final static <K extends Any, V extends Any> V streamComputeIfAbsent(ConcurrentMap<K, V> $self, K key, Function0<V> defaultValue)
Computes the value for the given key if it is not already present in the map.
- Parameters:
key- The key to compute the value for.defaultValue- The function to compute the value.
-
-
-
-