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

15
LINES

< > BotCompany Repo | #1030656 - syncRemoveLast - synchronized version of removeLast

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

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

static <A> void syncRemoveLast(L<A> l) {
  if (l != null) synchronized(l) {
    removeLast(l);
  }
}

static void syncRemoveLast(L l, int n) {
  if (l != null) synchronized(l) {
    removeLast(l, n);
  }
}

svoid syncRemoveLast(int n, L l) {
  syncRemoveLast(l, n);
}

Author comment

Began life as a copy of #1029659

download  show line numbers  debug dex   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030656
Snippet name: syncRemoveLast - synchronized version of removeLast
Eternal ID of this version: #1030656/3
Text MD5: 82fbdb5128424f20dfe948d2559e3952
Transpilation MD5: ff3e7b4389dcdf7f26f07f2c1c444242
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:32:40
Source code size: 281 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 9 / 19
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030656 & http://1030656.tinybrain.de