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

13
LINES

< > BotCompany Repo | #1011021 // uniq_debug - get or make concept with certain parameters

JavaX fragment (include)

1  
static <A extends Concept> A uniq_debug(Class<A> c, O... params) {
2  
  ret uniq_debug(mainConcepts, c, params);
3  
}
4  
5  
static <A extends Concept> A uniq_debug(Concepts cc, Class<A> c, O... params) {
6  
  params = expandParams(c, params);
7  
  A x = findConceptWhere_debug(cc, c, params);
8  
  if (x == null) {
9  
    x = nuObject(c);
10  
    csetAll(x, params);
11  
  }
12  
  ret x;
13  
}

Author comment

Began life as a copy of #1005040

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011021
Snippet name: uniq_debug - get or make concept with certain parameters
Eternal ID of this version: #1011021/1
Text MD5: f298170152ea3933d05f8d53bb169073
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 18:42:03
Source code size: 366 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 431 / 425
Referenced in: [show references]