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

11
LINES

< > BotCompany Repo | #1015554 - LiveValue

JavaX fragment (include)

static abstract class LiveValue<A> {
  abstract Class<A> getType();
  abstract A get();
  abstract void onChange(Runnable l);
  abstract void removeOnChangeListener(Runnable l);
  
  void onChangeAndNow(Runnable l) {
    onChange(l);
    callF(l);
  }
}

Author comment

Began life as a copy of #1015553

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015554
Snippet name: LiveValue
Eternal ID of this version: #1015554/3
Text MD5: 8fdf33af01bb057b81371e201170f397
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-20 15:28:15
Source code size: 263 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 933
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1015554 & http://1015554.tinybrain.de