Libraryless. Click here for Pure Java version (14766L/95K).
1 | // doesn't trigger on remove, just register and update |
2 | static <A extends Concept> void nuLike onIndividualConceptChange_notOnAllChanged(Concepts cc default db_mainConcepts(), Class<A> type, IVF1<A> r) {
|
3 | if (r != null) cc?.addConceptIndex(new IConceptIndex {
|
4 | public void update(Concept c) {
|
5 | if (instanceOf(c, type)) |
6 | r.get((A) c); |
7 | } |
8 | public void remove(Concept c) {}
|
9 | }); |
10 | } |
Began life as a copy of #1028823
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030870 |
| Snippet name: | onIndividualConceptChange_notOnAllChanged |
| Eternal ID of this version: | #1030870/1 |
| Text MD5: | 0070701696e32a88e03d495f5a9724a9 |
| Transpilation MD5: | a61bf5415f9e0589605829580e52de15 |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-04-05 13:53:27 |
| Source code size: | 408 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 421 / 576 |
| Referenced in: | [show references] |