1 | static <A, B> Set<A> keySet(Map<A, B> map) { |
2 | ret map == null ? new HashSet : map.keySet(); |
3 | } |
4 | |
5 | static Set keySet(O map) { |
6 | ret keys((Map) map); |
7 | } |
8 | |
9 | ifclass MultiSet |
10 | static <A> Set<A> keySet(MultiSet<A> ms) { |
11 | ret ms.keySet(); |
12 | } |
13 | endif |
14 | |
15 | ifclass MultiMap |
16 | static <A, B> Set<A> keySet(MultiMap<A, B> mm) { |
17 | ret mm.keySet(); |
18 | } |
19 | endif |
20 | |
21 | ifclass SmallestListMultiMap |
22 | static <A, B> Set<A> keySet(SmallestListMultiMap<A, B> mm) { |
23 | ret mm.keySet(); |
24 | } |
25 | endif |
Began life as a copy of #1002042
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: | #1013621 |
Snippet name: | keySet - synonym of keys |
Eternal ID of this version: | #1013621/2 |
Text MD5: | b635f712ec4779308527479794cfdd01 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-11 15:17:10 |
Source code size: | 489 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 545 / 752 |
Version history: | 1 change(s) |
Referenced in: | [show references] |