Libraryless. Click here for Pure Java version (2763L/17K).
1 | static <A, B> B popFirstValueFromMultiSetMap(MultiSetMap<A, B> map) { |
2 | if (map == null) null; |
3 | Pair<A, B> p = map.firstEntry(); |
4 | if (p == null) null; |
5 | map.remove(p.a, p.b); |
6 | ret p.b; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028465 |
Snippet name: | popFirstValueFromMultiSetMap |
Eternal ID of this version: | #1028465/2 |
Text MD5: | 7e8effa43cc9ab054b8ccc28605ab1e0 |
Transpilation MD5: | 4d766b8f4c1b3604da2b4d04c9608891 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-20 22:14:29 |
Source code size: | 195 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 344 |
Version history: | 1 change(s) |
Referenced in: | [show references] |