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

5
LINES

< > BotCompany Repo | #1034470 // VirtualVar

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

Libraryless. Click here for Pure Java version (6336L/35K).

1  
// you have to trigger change events manually if you need them
2  
srecord VirtualVar<A>(IF0<A> getter, IVF1<A> setter) extends HasChangeListeners is IVarWithNotify<A> {
3  
  public void set(A a) { setter?.get(a); }
4  
  public A get() { ret getter?.get(); }
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034470
Snippet name: VirtualVar
Eternal ID of this version: #1034470/8
Text MD5: e9a17021846367cd06ca8b0956fdeb89
Transpilation MD5: f6b0d08c1ab1fd27033a475ccc9a0295
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-08 05:41:12
Source code size: 254 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 314
Version history: 7 change(s)
Referenced in: [show references]