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

16
LINES

< > BotCompany Repo | #1008467 // uniq2 - get or make concept with certain parameters; return whether it was new. now synced

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

Transpiled version (12728L) is out of date.

1  
static <A extends Concept> Pair<A, Bool> nuLike uniq2(Class<A> c, O... params) {
2  
  ret uniq2(db_mainConcepts(), c, params);
3  
}
4  
5  
static <A extends Concept> Pair<A, Bool> uniq2(Concepts cc, Class<A> c, O... params) {
6  
  temp tempDBLock(cc);
7  
  params = expandParams(c, params);
8  
  A x = findConceptWhere(cc, c, params);
9  
  if (x == null) {
10  
    x = unlisted(c);
11  
    csetAll(x, params);
12  
    cc.register(x);
13  
    ret pair(x, true);
14  
  }
15  
  ret pair(x, false);
16  
}

Author comment

Began life as a copy of #1005040

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008467
Snippet name: uniq2 - get or make concept with certain parameters; return whether it was new. now synced
Eternal ID of this version: #1008467/8
Text MD5: 1566a88840574de490906028190cbca2
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-26 12:11:41
Source code size: 463 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 581 / 656
Version history: 7 change(s)
Referenced in: [show references]