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

8
LINES

< > BotCompany Repo | #1014415 // indexConceptFieldCI - add index to a string field of a concept class - case-insensitive - now idempotent

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

Libraryless. Click here for Pure Java version (18005L/110K).

static <A extends Concept> ConceptFieldIndexCI<A> indexConceptFieldCI(Class<A> c, S field) {
  ret indexConceptFieldCI(db_mainConcepts(), c, field);
}

static <A extends Concept> ConceptFieldIndexCI<A> indexConceptFieldCI(Concepts concepts, Class<A> c, S field) {
  ConceptFieldIndexCI<A> idx = getConceptFieldCIIndex(concepts, c, field);
  ret idx != null ? idx : new ConceptFieldIndexCI(concepts, c, field);
}

Author comment

Began life as a copy of #1008622

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014415
Snippet name: indexConceptFieldCI - add index to a string field of a concept class - case-insensitive - now idempotent
Eternal ID of this version: #1014415/10
Text MD5: a92191af9bdf9d8ed4881815276f3649
Transpilation MD5: 5e953aa6e3b78257d83f69eb3ebf7f73
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-29 19:39:54
Source code size: 418 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 487
Version history: 9 change(s)
Referenced in: [show references]