static <A extends Concept> A findBackRef(Concept c, Class<A> type) { for (Concept.Ref r : c.backRefs) if (instanceOf(r.concept(), type)) ret (A) r.concept(); null; } static <A extends Concept> A findBackRef(Class<A> type, Concept c) { ret findBackRef(c, type); }
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: | 851 / 913 | 
| Referenced in: | [show references] |