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.

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

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: 155 / 210
Version history: 5 change(s)
Referenced in: [show references]