1 | // Irgendwie gab's mal nen Unterschied zwischen den mapGet und get |
2 | // Methoden. null keys oder so. |
3 | |
4 | static <A, B> B syncMapGetOrCreate(Map<A, B> map, A key, Class<? extends B> c) { |
5 | ret syncGetOrCreate(map, key, c); |
6 | } |
7 | |
8 | |
9 | |
10 | // f : func -> B |
11 | static <A, B> B syncMapGetOrCreate(Map<A, B> map, A key, O f) { |
12 | ret syncGetOrCreate(map, key, f); |
13 | } |
14 | |
15 | |
16 | |
17 | |
18 | static <A, B> B nuLike syncMapGetOrCreate(Class<? extends B> c, Map<A, B> map, A key) { |
19 | ret syncGetOrCreate(c, map, key); |
20 | } |
21 | |
22 | |
23 | |
24 | |
25 | static <A, B> B syncMapGetOrCreate(Map<A, B> map, A key, IF0<B> f) { |
26 | ret syncGetOrCreate(map, key, f); |
27 | } |
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: | 146 / 175 |
Version history: | 1 change(s) |
Referenced in: | [show references] |