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

8
LINES

< > BotCompany Repo | #1032448 // WithCloseable

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

Libraryless. Click here for Pure Java version (3460L/19K).

sclass WithCloseable<A> extends Var<A> implements IAutoCloseableF0<A> {
  Closeable closeable;
  
  *(Closeable *closeable, A a) { super(a); }
  *(A a) { super(a); }
  
  public void close { _close(closeable); }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032448
Snippet name: WithCloseable
Eternal ID of this version: #1032448/3
Text MD5: 6bb039e15dea5969c881500f0ef37939
Transpilation MD5: 431c410f968d09ea6d85c9b58880688c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-06 16:02:05
Source code size: 220 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 258
Version history: 2 change(s)
Referenced in: [show references]