1 | static int makeUniqueConcepts(Class<? extends Concept> c, S field, Collection values) {
|
2 | int n = 0; |
3 | for (O value : unnull(values)) |
4 | if (uniq3(c, field, value)) ++n; |
5 | ret n; |
6 | } |
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: | #1008614 |
| Snippet name: | makeUniqueConcepts - create concepts with a parameter if they're not there (using a list of values); returns number of concepts made |
| Eternal ID of this version: | #1008614/3 |
| Text MD5: | 20ece2bfa6abdb619c5e47b8ae2629b9 |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-30 17:00:11 |
| Source code size: | 186 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 727 / 797 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |