static <A, B> Map<A, B> putOrCreateLinkedHashMap(Map<A, B> map, A key, B value) { if (map == null) map = new LinkedHashMap; map.put(key, value); ret map; }
Began life as a copy of #1030902
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035501 |
Snippet name: | putOrCreateLinkedHashMap - make LinkedHashMap if null. allow null keys and values |
Eternal ID of this version: | #1035501/1 |
Text MD5: | d7e85b6e4063676f008606819972914c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-30 17:26:30 |
Source code size: | 165 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 160 / 169 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |