@ Deprecated public static < K , V > V getOrPutDefault ( Map < K , V > map , K key , Supplier < V > defaultGetter ) { return map . computeIfAbsent ( key , k -> defaultGetter . get ( ) ) ; }
Get the value of the key . If absent put the default value .