Libraryless. Click here for Pure Java version (17186L/105K).
1 | static AutoCloseable nuLike onConceptChangeByClass_notOnAllChanged(Concepts cc default db_mainConcepts(), Class type, Runnable r) {
|
2 | ret tempAddConceptIndex(cc, new IConceptIndex {
|
3 | public void update(Concept c) { if (instanceOf(c, type)) pcallF(r); }
|
4 | public void remove(Concept c) { if (instanceOf(c, type)) pcallF(r); }
|
5 | }); |
6 | } |
7 | |
8 | static <A extends Concept> AutoCloseable nuLike onConceptChangeByClass_notOnAllChanged(Concepts cc default db_mainConcepts(), Class<A> type, IVF1<A> r) {
|
9 | ret tempAddConceptIndex(cc, new IConceptIndex {
|
10 | public void update(Concept c) { if (instanceOf(c, type)) pcallF(r, (A) c); }
|
11 | public void remove(Concept c) { if (instanceOf(c, type)) pcallF(r, (A) c ); }
|
12 | }); |
13 | } |
Began life as a copy of #1028806
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: | #1028823 |
| Snippet name: | onConceptChangeByClass_notOnAllChanged |
| Eternal ID of this version: | #1028823/6 |
| Text MD5: | 9ea55cdae3cd296112823f12fe348333 |
| Transpilation MD5: | 29a2381b42dd85091696f3f12969b01b |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-21 18:06:48 |
| Source code size: | 725 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 458 / 592 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |