Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1011620 // navigableKeys function

JavaX fragment (include)

1  
static <A, B> NavigableSet<A> navigableKeys(NavigableMap<A, B> map) {
2  
  ret map == null ? new TreeSet : map.navigableKeySet();
3  
}
4  
5  
ifclass MultiSet
6  
  static <A> NavigableSet<A> navigableKeys(MultiSet<A> ms) {
7  
    ret ((NavigableMap) ms.map).navigableKeySet();
8  
  }
9  
endif
10  
11  
ifclass MultiMap
12  
  static <A, B> NavigableSet<A> navigableKeys(MultiMap<A, B> mm) {
13  
    ret ((NavigableMap) mm.data).navigableKeySet();
14  
  }
15  
endif

Author comment

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: #1011620
Snippet name: navigableKeys function
Eternal ID of this version: #1011620/7
Text MD5: d55c6e98cdc83bc0d1cf0d76d317346f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-01 02:47:34
Source code size: 429 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 593 / 655
Version history: 6 change(s)
Referenced in: [show references]