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

9
LINES

< > BotCompany Repo | #1030271 // indexSingletonConceptIfUnindexed

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

Libraryless. Click here for Pure Java version (13589L/92K).

1  
sbool indexSingletonConceptIfUnindexed(Concepts cc, Class<? extends Concept> c) {
2  
  if (isConceptClassIndexed(cc, c)) false;
3  
  indexSingletonConcept(cc, c);
4  
  true;
5  
}
6  
7  
sbool nuLike indexSingletonConceptIfUnindexed(Class<? extends Concept> c) {
8  
  ret indexSingletonConceptIfUnindexed(db_mainConcepts(), c);
9  
}

Author comment

Began life as a copy of #1024318

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030271
Snippet name: indexSingletonConceptIfUnindexed
Eternal ID of this version: #1030271/2
Text MD5: f18cd9f7d25bd660e33ae12559baa913
Transpilation MD5: 7f6ae215f92fbfffedb0279eed05f3f9
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:56:13
Source code size: 315 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 117 / 173
Version history: 1 change(s)
Referenced in: [show references]