Libraryless. Click here for Pure Java version (41L/1K).
1 | static <A extends B, B> L<B> nuLike wideningListCast(Class<B> c, L<A> l) {
|
2 | ret (L) l; |
3 | } |
4 | |
5 | static <A extends B, B> Cl<B> nuLike wideningListCast(Class<B> c, Cl<A> l) {
|
6 | ret (Cl) l; |
7 | } |
8 | |
9 | static <A extends B, B> L<B> wideningListCast(L<A> l) {
|
10 | ret (L) l; |
11 | } |
Began life as a copy of #1028178
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031269 |
| Snippet name: | wideningListCast |
| Eternal ID of this version: | #1031269/3 |
| Text MD5: | f229ef0eb5771de4d1f26c22225801e0 |
| Transpilation MD5: | f99ee3a3d52b9a5640f15de6ebb18dd4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-05 18:41:26 |
| Source code size: | 265 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 445 / 615 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |