Warning: session_start(): open(/var/lib/php/sessions/sess_k7fftjpbl83q4ee0oa47vaddfv, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
getValuesAndClear [1032097]

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).

1  
static <A, B> L<B> getValuesAndClear(Map<A, B> map) {
2  
  if (map == null) null;
3  
  L<B> l = valuesList(map);
4  
  map.clear();
5  
  ret l;
6  
}

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: 512 / 639
Referenced in: [show references]