1 | static <A extends Concept> A findBackRef(Concept c, Class<A> type) {
|
2 | for (Concept.Ref r : c.backRefs) |
3 | if (instanceOf(r.concept(), type)) |
4 | ret (A) r.concept(); |
5 | null; |
6 | } |
7 | |
8 | static <A extends Concept> A findBackRef(Class<A> type, Concept c) {
|
9 | ret findBackRef(c, type); |
10 | } |
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: | #1006635 |
| Snippet name: | findBackRef |
| Eternal ID of this version: | #1006635/1 |
| Text MD5: | 9050b4c447ed6e4335a10963d670b340 |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-01-23 17:52:21 |
| Source code size: | 288 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 852 / 914 |
| Referenced in: | [show references] |