Libraryless. Click here for Pure Java version (13587L/91K).
1 | static <A extends Concept> A uniq_cached(Class<A> c) {
|
2 | ret uniq_cached(db_mainConcepts(), c); |
3 | } |
4 | |
5 | static <A extends Concept> A uniq_cached(Concepts cc, Class<A> c) {
|
6 | temp tempDBLock(cc); |
7 | indexSingletonConceptIfUnindexed(cc, c); |
8 | ret uniq(cc, c); |
9 | } |
Began life as a copy of #1005040
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030272 |
| Snippet name: | uniq_cached - uniq, but create index too. for now only without parameters |
| Eternal ID of this version: | #1030272/1 |
| Text MD5: | b4fbf6a2698caadfa6836a463656ae0a |
| Transpilation MD5: | 8d0f700e9a6d400ba455225c4cce0521 |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-25 13:55:21 |
| Source code size: | 261 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 469 / 571 |
| Referenced in: | [show references] |