<A> bool addAndChange(Cl<A> cl, A a) { if (cl == null || !cl.add(a)) false; change(); true; } void <A> clearAndChange(Cl<A> cl) { if (cl == null) ret; cl.clear(); change(); } ifclass LongBuffer void addAndChange(LongBuffer buf, long a) { if (buf == null) ret; buf.add(a); change(); } void clearAndChange(LongBuffer buf) { if (buf == null) ret; buf.clear(); change(); } endif
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, ekrmjmnbrukm, elmgxqgtpvxh, gjtlkbvenryc, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1031423 |
| Snippet name: | Concept/DynModule convenience methods [Include] |
| Eternal ID of this version: | #1031423/7 |
| Text MD5: | 7cda6212468112ecaa22002e9fb73f4a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-12 05:35:53 |
| Source code size: | 425 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 366 / 5321 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |