Libraryless. Click here for Pure Java version (11862L/81K).
| 1 | static <A extends Concept> Collection<S> nuLike distinctCIFieldValuesOfConcepts(Class<A> c, S field) {
 | 
| 2 | ret distinctCIFieldValuesOfConcepts(db_mainConcepts(), c, field); | 
| 3 | } | 
| 4 | |
| 5 | static <A extends Concept> Collection<S> distinctCIFieldValuesOfConcepts(Concepts concepts, Class<A> c, S field) {
 | 
| 6 | // indexed | 
| 7 | IFieldIndex<A, S> index = concepts.getCIFieldIndex(c, field); | 
| 8 | if (index != null) | 
| 9 | ret index.allValues(); | 
| 10 | |
| 11 | // table scan | 
| 12 | Set<S> set = ciSet(); | 
| 13 | for (A x : concepts.list(c)) set.add((S) getOpt(x, field)); | 
| 14 | ret set; | 
| 15 | } | 
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: | 469 / 613 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |