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

10
LINES

< > BotCompany Repo | #1034145 // IHasChangeListeners

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

Libraryless. Click here for Pure Java version (5607L/31K).

interface IHasChangeListeners {
  selfType onChange(Runnable r);
  selfType removeChangeListener(Runnable r);
  
  default selfType onChangeAndNow(Runnable l) {
    onChange(l);
    callF(l);
    this;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034145
Snippet name: IHasChangeListeners
Eternal ID of this version: #1034145/6
Text MD5: 566964baeec1e0290da9d18fd1aa6b68
Transpilation MD5: e3e162a04e6c1c6b9c59afa545e5e281
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-07 21:06:29
Source code size: 216 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 444
Version history: 5 change(s)
Referenced in: [show references]