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

11
LINES

< > BotCompany Repo | #1024290 // indexConceptFields - index certain concept fields - idempotent

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

Libraryless. Click here for Pure Java version (12393L/84K).

1  
// first parameter can be Concepts
2  
svoid indexConceptFields(O... params) {
3  
  int i = 0;
4  
  Concepts concepts;
5  
  if (first(params) instanceof Concepts) {
6  
    concepts = (Concepts) first(params);
7  
    ++i;
8  
  } else concepts = db_mainConcepts();
9  
  for (; i < l(params); i += 2)
10  
    indexConceptField(concepts, (Class) params[i], (S) params[i+1]);
11  
}

Author comment

Began life as a copy of #1024289

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024290
Snippet name: indexConceptFields - index certain concept fields - idempotent
Eternal ID of this version: #1024290/5
Text MD5: 615d8316a419c0b39e9b08e8de302899
Transpilation MD5: 2c94e87a19259554352117afdcf15303
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-30 13:43:45
Source code size: 353 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 305 / 420
Version history: 4 change(s)
Referenced in: [show references]