static <A extends Concept> A nuLike findConceptWhereCI(Class<A> c, O... params) { ret findConceptWhereCI(db_mainConcepts(), c, params); } static <A extends Concept> A findConceptWhereCI(Concepts concepts, Class<A> c, O... params) { params = expandParams(c, params); // indexed if (concepts.ciFieldIndices != null) for (int i = 0; i < l(params); i += 2) { IFieldIndex<A, O> index = concepts.getCIFieldIndex(c, (S) params[i]); if (index != null) { for (A x : index.getAll(params[i+1])) if (checkConceptFieldsIC(x, params)) ret x; null; } } // table scan for (A x : concepts.list(c)) if (checkConceptFieldsIC(x, params)) ret x; null; } static Concept findConceptWhereCI(Concepts concepts, S c, O... params) { for (Concept x : concepts.list(c)) if (checkConceptFieldsIC(x, params)) ret x; null; }
Began life as a copy of #1023276
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031012 |
Snippet name: | findConceptWhereCI - backup |
Eternal ID of this version: | #1031012/1 |
Text MD5: | 55746883f1a5bc63bf15abce770a815d |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-20 18:41:35 |
Source code size: | 900 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 131 / 161 |
Referenced in: | [show references] |