Libraryless. Click here for Pure Java version (29L/1K).
1 | static <A, B, C extends B> B putAndReturnValue(Map<A, B> map, A key, C value) { |
2 | if (map != null) map.put(key, value); |
3 | ret value; |
4 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030269 |
Snippet name: | putAndReturnValue |
Eternal ID of this version: | #1030269/2 |
Text MD5: | 910411ca8c610b35cb9bb65040f26b4b |
Transpilation MD5: | 1a71f3070c3e3e47386a4270691f4430 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-25 13:15:19 |
Source code size: | 137 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 193 / 259 |
Version history: | 1 change(s) |
Referenced in: | [show references] |