Libraryless. Click here for Pure Java version (3820L/22K).
static <A extends AutoCloseable> bool closeAfterRemove(Cl<A> l, A a) { if (!remove_trueIfChanged(l, a)) false; close(a); true; }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032613 |
| Snippet name: | closeAfterRemove - remove object from collection and close the element if it was actually contained |
| Eternal ID of this version: | #1032613/2 |
| Text MD5: | dcfa25754c83d9c1767e6fe0802fee3b |
| Transpilation MD5: | bf4f13c6c9137454c9d8104dae9be551 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-25 00:34:52 |
| Source code size: | 138 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 347 / 442 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |