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).

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

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: 304 / 419
Version history: 4 change(s)
Referenced in: [show references]