Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1026745 // mapValues_nullOnNull - apply function to a map's values, return null if map is null

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2169L/14K).

static <A, B, C> Map<A, C> lambdaMapLike mapValues_nullOnNull(IF1<B, C> f, Map<A, B> map) {
  ret map == null ? null : mapValues(f, map);
}

Author comment

Began life as a copy of #1004652

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026745
Snippet name: mapValues_nullOnNull - apply function to a map's values, return null if map is null
Eternal ID of this version: #1026745/2
Text MD5: 8c22f5ebe38ff6fb054f5b9c0ddceaba
Transpilation MD5: e18d2f4a538f7f27ff6707d9319d5d82
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 21:59:29
Source code size: 141 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 161
Version history: 1 change(s)
Referenced in: [show references]