Libraryless. Click here for Pure Java version (11501L/65K).
1 | static AutoCloseable tempRestoreSCP(SingleComponentPanel scp) { |
2 | if (scp == null) null; |
3 | var contents = scp!; |
4 | ret -> scp.set(contents); |
5 | } |
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: | 121 / 162 |
Version history: | 1 change(s) |
Referenced in: | [show references] |