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

11
LINES

< > BotCompany Repo | #1028806 // onConceptChangeByClass

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

Transpiled version (12851L) is out of date.

1  
// TODO: this doesn't really make sense right now as
2  
// onAllChanged is called on every change. We need a new
3  
// event type "unknown change" or something.
4  
svoid nuLike onConceptChangeByClass(Class type, Runnable r) {
5  
  onConceptChangeByClass(db_mainConcepts(), type, r);
6  
}
7  
8  
svoid onConceptChangeByClass(Concepts cc, Class type, Runnable r) {
9  
  onConceptChangeByClass_notOnAllChanged(cc, type, r);
10  
  cc.onAllChanged.add(r);
11  
}

Author comment

Began life as a copy of #1016028

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028806
Snippet name: onConceptChangeByClass
Eternal ID of this version: #1028806/8
Text MD5: 7659712cb575e7ec7b72eb8bb5d3ab9c
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-22 19:24:48
Source code size: 434 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 257 / 357
Version history: 7 change(s)
Referenced in: [show references]