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

11
LINES

< > BotCompany Repo | #1024289 // indexConceptFieldsCI - index certain case-insensitive concept fields - idempotent

JavaX fragment (include)

1  
// first parameter can be Concepts
2  
svoid indexConceptFieldsCI(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  
    indexConceptFieldCI(concepts, (Class) params[i], (S) params[i+1]);
11  
}

Author comment

Began life as a copy of #1023273

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: #1024289
Snippet name: indexConceptFieldsCI - index certain case-insensitive concept fields - idempotent
Eternal ID of this version: #1024289/3
Text MD5: 065d78a7c5f8689a9ea9b1df1ee8f94c
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-27 13:29:19
Source code size: 357 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 239 / 301
Version history: 2 change(s)
Referenced in: [show references]