Libraryless. Click here for Pure Java version (2171L/14K).
1 | static <A, B> IterableIterator<B> navigableMultiSetMapValuesIterator(final MultiSetMap<A, B> mm) { |
2 | ret iteratorFromFunction(new F0<B>() { |
3 | Iterator<Set<B>> it = concurrentlyIterateValues((NavigableMap) mm.data); |
4 | Iterator<B> it2; |
5 | |
6 | public B get() { |
7 | while (it2 == null || !it2.hasNext()) { |
8 | if (!it.hasNext()) null; |
9 | it2 = iterator(asList(it.next())); |
10 | } |
11 | ret it2.next(); |
12 | } |
13 | }); |
14 | } |
Began life as a copy of #1013540
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024460 |
Snippet name: | navigableMultiSetMapValuesIterator - iterates concurrently; doesn't handle null values; only for TreeMaps for now [dev.] |
Eternal ID of this version: | #1024460/4 |
Text MD5: | 98ab5fff81833f77f884711f422398e2 |
Transpilation MD5: | cc62aae1b2e149b315a8a346d877c427 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-13 12:28:16 |
Source code size: | 442 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 327 |
Version history: | 3 change(s) |
Referenced in: | [show references] |