public MapBuilder < K , V > putIf ( K key , Optional < V > value ) { value . ifPresent ( v -> map_ . put ( key , v ) ) ; return this ; }
Adds an entry to the map for this builder if the given value is present .