Libraryless. Click here for Pure Java version (15592L/100K).
static <A extends Concept> A uniqueConcept(Class<A> c, O... params) { ret uniqueConcept(db_mainConcepts(), c, params); } static <A extends Concept> A uniqueConcept(Concepts cc, Class<A> c, O... params) { temp tempDBLock(cc); params = expandParams(c, params); A x = findConceptWhere(cc, c, params); if (x == null) { x = unlisted(c); ifdef uniqueConcept_debug printStackTrace(renderVars_str uniqueConcept_debug(action := "Made unlisted", +cc, +c, +params, +x)); endifdef csetAll(x, params); cc.register(x); } else { ifdef uniqueConcept_debug printStackTrace(renderVars_str printVars_str uniqueConcept_debug(action := "Found existing", +cc, +c, +params, +x)); endifdef } ret x; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment