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)

static <A extends Concept> A nuLike uniqCI(Class<A> c, O... params) {
  ret uniqueConcept(db_mainConcepts(), c, params);
}

static <A extends Concept> A uniqCI(Concepts cc, Class<A> c, O... params) {
  temp tempDBLock(cc);
  params = expandParams(c, params);
  A x = findConceptWhereCI(cc, c, params);
  if (x == null) {
    x = unlisted(c);
    csetAll(x, params);
    cc.register(x);
  }
  ret x;
}

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: 348 / 413
Version history: 2 change(s)
Referenced in: [show references]