Libraryless. Click here for Pure Java version (2876L/18K).
1 | static <A, B> IterableIterator<B> navigableMultiSetMapValuesIterator_concurrent(final MultiSetMap<A, B> mm) { |
2 | ret navigableMultiSetMapValuesIterator_concurrent(mm, mm.data); |
3 | } |
4 | |
5 | static <A, B> IterableIterator<B> navigableMultiSetMapValuesIterator_concurrent(final MultiSetMap<A, B> mm, O mutex) { |
6 | ret iteratorFromFunction(new F0<B>() { |
7 | Iterator<Set<B>> it = concurrentlyIterateValues((NavigableMap) mm.data, mutex); |
8 | Iterator<B> it2; |
9 | |
10 | public B get() { |
11 | while (it2 == null || !it2.hasNext()) { |
12 | if (!it.hasNext()) null; |
13 | it2 = iterator(asList(it.next())); |
14 | } |
15 | ret it2.next(); |
16 | } |
17 | }); |
18 | } |
Began life as a copy of #1013540
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: | #1026153 |
Snippet name: | navigableMultiSetMapValuesIterator_concurrent |
Eternal ID of this version: | #1026153/2 |
Text MD5: | 9fcf98487e9b09b05b07ca739fff959a |
Transpilation MD5: | f6356e8e6ef3987100627d49006047be |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-13 12:15:09 |
Source code size: | 654 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 248 / 374 |
Version history: | 1 change(s) |
Referenced in: | [show references] |