Libraryless. Click here for Pure Java version (14800L/95K).
1 | static Cl<Concept.Ref> scanConceptForRefs(Concept c) { |
2 | Set<Concept.Ref> refs = new HashSet; |
3 | if (c != null) for (O o : values(objectToMap(c))) { |
4 | if (o cast Concept.Ref) |
5 | refs.add(o); |
6 | else if (o cast Concept.RefL) |
7 | addAll(refs, o.l); |
8 | } |
9 | ret refs; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030876 |
Snippet name: | scanConceptForRefs |
Eternal ID of this version: | #1030876/3 |
Text MD5: | b7b8ef7a237426004d55c653719aee10 |
Transpilation MD5: | f514518347cd7eee464f2e772cec9b70 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-05 16:02:00 |
Source code size: | 280 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 221 / 303 |
Version history: | 2 change(s) |
Referenced in: | [show references] |