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

14
LINES

< > BotCompany Repo | #1019169 // WithAutoCloseable

JavaX fragment (include)

sclass WithAutoCloseable<A> implements AutoCloseable {
  AutoCloseable autoCloseable;
  A value;
  
  *() {}
  *(AutoCloseable *autoCloseable, A *value) {}
  
  A get() { ret value; }
  
  public void close {
    closeAutoCloseable(autoCloseable);
    autoCloseable = null;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019169
Snippet name: WithAutoCloseable
Eternal ID of this version: #1019169/2
Text MD5: 92901c4e7ea715be6fac0c55d06ee61d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-26 19:46:07
Source code size: 292 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 364 / 907
Version history: 1 change(s)
Referenced in: [show references]