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

7
LINES

< > BotCompany Repo | #1033333 // cloneTailMultiMap

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (4546L) is out of date.

1  
static <A, B> MultiMap<A, B> cloneTailMultiMap(MultiMap<A, B> mm, A key, bool inclusive) {
2  
  if (mm == null) null;
3  
  var mm2 = similarEmptyMultiMap(mm);
4  
  for (e : entrySet(castMultiMapToNavigableMap(mm).tailMap(key, inclusive)))
5  
    mm2.data.put(e.getKey(), cloneList(e.getValue()));
6  
  ret mm2;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033333
Snippet name: cloneTailMultiMap
Eternal ID of this version: #1033333/6
Text MD5: e6ed75d0ce0b179828cf8be5f7241c8e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-23 06:18:13
Source code size: 303 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 212
Version history: 5 change(s)
Referenced in: [show references]