Libraryless. Click here for Pure Java version (2763L/17K).
static <A, B> B popFirstValueFromMultiSetMap(MultiSetMap<A, B> map) { if (map == null) null; Pair<A, B> p = map.firstEntry(); if (p == null) null; map.remove(p.a, p.b); ret p.b; }
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: | 444 / 593 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |