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

6
LINES

< > BotCompany Repo | #1030045 // syncMapToPairs

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

Libraryless. Click here for Pure Java version (2519L/16K).

static <A, B> L<Pair<A, B>> syncMapToPairs(Map<A, B> map) {
  if (map == null) ret new L;
  synchronized(collectionMutex(map)) {
    ret mapToPairs(map);
  }
}

Author comment

Began life as a copy of #1011173

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030045
Snippet name: syncMapToPairs
Eternal ID of this version: #1030045/1
Text MD5: 1400001a702bbe84f7ab9047c864ea6b
Transpilation MD5: 3a13548cfec99d557162ded5c1790217
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-02 13:41:42
Source code size: 164 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 206
Referenced in: [show references]