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

6
LINES

< > BotCompany Repo | #1032097 // getValuesAndClear

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

Libraryless. Click here for Pure Java version (3125L/17K).

static <A, B> L<B> getValuesAndClear(Map<A, B> map) {
  if (map == null) null;
  L<B> l = valuesList(map);
  map.clear();
  ret l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032097
Snippet name: getValuesAndClear
Eternal ID of this version: #1032097/1
Text MD5: 0e2dea99021a6daca4c357ca53f75605
Transpilation MD5: d150a72fb8210f455274bae1db03aee9
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 14:52:18
Source code size: 137 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 73 / 108
Referenced in: [show references]