Transpiled version (36L) is out of date.
1 | static <A, B> B getAndRemove(Map<A, B> map, A a) { |
2 | if (!containsKey(map, a)) null; |
3 | B b = map.get(a); |
4 | map.remove(a); |
5 | ret b; |
6 | } |
7 | |
8 | static <A, B> B getAndRemove(A a, Map<A, B> map) { |
9 | ret getAndRemove(map, a); |
10 | } |
Began life as a copy of #1008055
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030224 |
Snippet name: | getAndRemove - get element from map and remove |
Eternal ID of this version: | #1030224/2 |
Text MD5: | ebc00806f9c9a30cc9aaf9a6ec53eef6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-17 14:59:07 |
Source code size: | 219 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 200 / 264 |
Version history: | 1 change(s) |
Referenced in: | [show references] |