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

15
LINES

< > BotCompany Repo | #1023275 // uniqCI - get or make concept with certain parameters, ignoring case

JavaX fragment (include)

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

Author comment

Began life as a copy of #1005040

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1023275
Snippet name: uniqCI - get or make concept with certain parameters, ignoring case
Eternal ID of this version: #1023275/3
Text MD5: 2a76f8a00fb639baae78492ecd2941b2
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-18 22:03:02
Source code size: 414 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 350 / 415
Version history: 2 change(s)
Referenced in: [show references]