Libraryless. Click here for Pure Java version (36L/1K).
// could almost add IVar<A> here - but void set() and bool set() are incompatible in some places static interface IRef<A> extends IF0<A> { // called by the referencee to atomically replace itself // Passing oldValue to avoid race conditions public default void replaceValue(A oldValue, A newValue) {} }
Began life as a copy of #1009536
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031953 |
| Snippet name: | IRef - a reference |
| Eternal ID of this version: | #1031953/7 |
| Text MD5: | 71a7a85ca84bc6c5d32045b972cee989 |
| Transpilation MD5: | 815fb1af92f6e22a034b00bf03b2c9d7 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-06 07:13:20 |
| Source code size: | 313 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 479 / 695 |
| Version history: | 6 change(s) |
| Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |