1 | static <A> A unstructAndCast(Class<A> c, S struct) { |
2 | O o = unstruct(struct); |
3 | if (o == null || isInstance(c, o)) |
4 | ret (A) o; |
5 | throw badCastException(o, c); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023101 |
Snippet name: | unstructAndCast |
Eternal ID of this version: | #1023101/2 |
Text MD5: | 89213bb63627c9dcf8097501f0446633 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-05 18:20:10 |
Source code size: | 169 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 273 / 301 |
Version history: | 1 change(s) |
Referenced in: | [show references] |