1 | static <A, B> IterableIterator<B> valuesOfMagicMap(final Map<A, B> map) { |
2 | final Iterator<A> i = keysIterator(map); |
3 | ret new IterableIterator<B> { |
4 | public bool hasNext() { |
5 | ret i.hasNext(); |
6 | } |
7 | |
8 | public B next() { |
9 | ret map.get(i.next()); |
10 | } |
11 | |
12 | public void remove() { |
13 | i.remove(); |
14 | } |
15 | }; |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014179 |
Snippet name: | valuesOfMagicMap - values of a map with special get function |
Eternal ID of this version: | #1014179/3 |
Text MD5: | 78b757897c9c1520d333a526e04c982a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-15 15:10:13 |
Source code size: | 343 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 357 / 369 |
Version history: | 2 change(s) |
Referenced in: | [show references] |