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)

static <A, B> L<B> syncCloneValues(Map<A, B> map) {
  if (map == null) ret new L;
  synchronized(map) {
    ret cloneList(values(map));
  }
}

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: 223 / 263
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)