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

5
LINES

< > BotCompany Repo | #1036403 // tempRestoreSCP - restore contents of SingleComponentPanel after block

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

Libraryless. Click here for Pure Java version (11501L/65K).

static AutoCloseable tempRestoreSCP(SingleComponentPanel scp) {
  if (scp == null) null;
  var contents = scp!;
  ret -> scp.set(contents);
}

Author comment

Began life as a copy of #1035550

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036403
Snippet name: tempRestoreSCP - restore contents of SingleComponentPanel after block
Eternal ID of this version: #1036403/2
Text MD5: df3a7e0e559d51536397e1bbf2e0c82b
Transpilation MD5: 3075adb2dd37a6103529582ffdd1e181
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-10 02:40:04
Source code size: 145 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 161
Version history: 1 change(s)
Referenced in: [show references]