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

5
LINES

< > BotCompany Repo | #1019865 // tempSetVar

JavaX fragment (include)

static <A> AutoCloseable tempSetVar(final IVar<A> var, A a) {
  if (var == null) null;
  final A prev = setVar_returnPrevious(var, a);
  ret autoCloseable { var.set(prev); };
}

Author comment

Began life as a copy of #1012933

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019865
Snippet name: tempSetVar
Eternal ID of this version: #1019865/1
Text MD5: c5fac39f5a97f866ca4ff7e72a502a41
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-29 09:14:12
Source code size: 180 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 265 / 302
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034282 - tempSetBoolVar