// Irgendwie gab's mal nen Unterschied zwischen den mapGet und get // Methoden. null keys oder so. static <A, B> B syncMapGetOrCreate(Map<A, B> map, A key, Class<? extends B> c) { ret syncGetOrCreate(map, key, c); } // f : func -> B static <A, B> B syncMapGetOrCreate(Map<A, B> map, A key, O f) { ret syncGetOrCreate(map, key, f); } static <A, B> B nuLike syncMapGetOrCreate(Class<? extends B> c, Map<A, B> map, A key) { ret syncGetOrCreate(c, map, key); } static <A, B> B syncMapGetOrCreate(Map<A, B> map, A key, IF0<B> f) { ret syncGetOrCreate(map, key, f); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032100 |
Snippet name: | syncMapGetOrCreate - synonym of syncGetOrCreate |
Eternal ID of this version: | #1032100/2 |
Text MD5: | 0e162a7302d42e4560dfd7abeb69a4c1 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-11 15:01:27 |
Source code size: | 607 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 145 / 174 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |