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

6
LINES

< > BotCompany Repo | #1029661 // syncLast - synchronized version of last

JavaX fragment (include)

1  
static <A> A syncLast(L<A> l) {
2  
  if (l == null) null;
3  
  synchronized(l) {
4  
    ret last(l);
5  
  }
6  
}

Author comment

Began life as a copy of #1029659

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: #1029661
Snippet name: syncLast - synchronized version of last
Eternal ID of this version: #1029661/1
Text MD5: dae948023e2959b72040ed3c0b4bd8b4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-05 16:45:00
Source code size: 102 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 96 / 130
Referenced in: [show references]