Libraryless. Click here for Pure Java version (16259L/105K).
1 | static <A extends Concept> ConceptFieldIndexCI_withTopTen<A> indexConceptFieldCIWithTopTen(Concepts cc default db_mainConcepts(), Class<A> c, S field) {
|
2 | var idx = getConceptFieldCIIndex(cc, c, field); |
3 | if (idx cast ConceptFieldIndexCI_withTopTen) |
4 | ret idx; |
5 | |
6 | // replace existing index without top ten |
7 | if (idx != null) |
8 | cc.removeCIFieldIndex(c, field); |
9 | |
10 | ret new ConceptFieldIndexCI_withTopTen(cc, c, field); |
11 | } |
Began life as a copy of #1014415
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031462 |
| Snippet name: | indexConceptFieldCIWithTopTen - index a case-insensitive string field with value top ten |
| Eternal ID of this version: | #1031462/4 |
| Text MD5: | 8a99a9d023e950f745e8d30874987763 |
| Transpilation MD5: | f551912a6d5ea1c6a23ce8b66e760aa1 |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-14 01:19:59 |
| Source code size: | 440 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 391 / 516 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |