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

9
LINES

< > BotCompany Repo | #1030272 - uniq_cached - uniq, but create index too. for now only without parameters

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

Libraryless. Click here for Pure Java version (13587L/91K).

static <A extends Concept> A uniq_cached(Class<A> c) {
  ret uniq_cached(db_mainConcepts(), c);
}

static <A extends Concept> A uniq_cached(Concepts cc, Class<A> c) {
  temp tempDBLock(cc);
  indexSingletonConceptIfUnindexed(cc, c);
  ret uniq(cc, c);
}

Author comment

Began life as a copy of #1005040

download  show line numbers  debug dex   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030272
Snippet name: uniq_cached - uniq, but create index too. for now only without parameters
Eternal ID of this version: #1030272/1
Text MD5: b4fbf6a2698caadfa6836a463656ae0a
Transpilation MD5: 8d0f700e9a6d400ba455225c4cce0521
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-25 13:55:21
Source code size: 261 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 5 / 14
Referenced in: [show references]

Formerly at http://tinybrain.de/1030272 & http://1030272.tinybrain.de