Package 

Class MapKt


  • 
    public final class MapKt
    
                        
    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.