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

6
LINES

< > BotCompany Repo | #1025645 // syncCloneValues - cloned list of values, synchronize on map

JavaX fragment (include)

1  
static <A, B> L<B> syncCloneValues(Map<A, B> map) {
2  
  if (map == null) ret new L;
3  
  synchronized(map) {
4  
    ret cloneList(values(map));
5  
  }
6  
}

Author comment

Began life as a copy of #1012808

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025645
Snippet name: syncCloneValues - cloned list of values, synchronize on map
Eternal ID of this version: #1025645/4
Text MD5: 0c38f80a4a90dfebe2b5ce4dc5d35a00
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-11 01:20:30
Source code size: 146 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 224 / 264
Version history: 3 change(s)
Referenced in: [show references]