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

6
LINES

< > BotCompany Repo | #1030658 // syncNextToLast - synchronized version of nextToLast

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

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

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

Author comment

Began life as a copy of #1029661

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030658
Snippet name: syncNextToLast - synchronized version of nextToLast
Eternal ID of this version: #1030658/1
Text MD5: 55c825bf162e578e8335adc3b1768ff1
Transpilation MD5: 4202376f150e29324178d6ec7ebca53f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-02-20 16:36:26
Source code size: 114 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 272
Referenced in: [show references]