Libraryless. Click here for Pure Java version (11862L/81K).
static <A extends Concept> Collection<S> nuLike distinctCIFieldValuesOfConcepts(Class<A> c, S field) { ret distinctCIFieldValuesOfConcepts(db_mainConcepts(), c, field); } static <A extends Concept> Collection<S> distinctCIFieldValuesOfConcepts(Concepts concepts, Class<A> c, S field) { // indexed IFieldIndex<A, S> index = concepts.getCIFieldIndex(c, field); if (index != null) ret index.allValues(); // table scan Set<S> set = ciSet(); for (A x : concepts.list(c)) set.add((S) getOpt(x, field)); ret set; }
Began life as a copy of #1023276
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: | #1024253 |
Snippet name: | distinctCIFieldValuesOfConcepts |
Eternal ID of this version: | #1024253/4 |
Text MD5: | 934e7abac2b2feb08054bfe316bc81b6 |
Transpilation MD5: | 70fef80c3c1e0ebf57167a27b5e56a0a |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-28 18:12:08 |
Source code size: | 543 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 350 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1024255 - distinctCIFieldValuesOfConcepts_multiSet - unique field values plus count, case-insensitive |