1 | static class WrappedMap<A, B> extends AbstractMap<A, B> { |
2 | Map<A, B> map; |
3 | |
4 | *() {} |
5 | *(Map<A, B> *map) {} |
6 | |
7 | public B get(Object key) { |
8 | ret map.get(key); |
9 | } |
10 | |
11 | public B put(A key, B value) { |
12 | return map.put(key, value); |
13 | } |
14 | |
15 | public bool containsKey(O key) { |
16 | ret map.containsKey(key); |
17 | } |
18 | |
19 | public Set<Map.Entry<A,B>> entrySet() { |
20 | ret map.entrySet(); |
21 | } |
22 | } |
Began life as a copy of #1017455
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018325 |
Snippet name: | class WrappedMap - just forwards to base map |
Eternal ID of this version: | #1018325/3 |
Text MD5: | 77d7c5293f127bd58d30b54555a33850 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-19 18:37:10 |
Source code size: | 405 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 372 / 1221 |
Version history: | 2 change(s) |
Referenced in: | [show references] |