Libraryless. Click here for Pure Java version (4367L/28K).
svoid test_ParameterizedTypeImpl() { class X { LS bla; } Type a = genericFieldType(X.class, "bla"); Type b = ParameterizedTypeImpl(null, L.class, S.class); assertEqualsBothDirectionsVerbose(a, b); b = ParameterizedTypeImpl(null, L.class, L.class); assertNotEqualsBothDirectionsVerbose(a, b); b = ParameterizedTypeImpl(null, Optional.class, S.class); assertNotEqualsBothDirectionsVerbose(a, b); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029598 |
Snippet name: | test_ParameterizedTypeImpl (OK) |
Eternal ID of this version: | #1029598/3 |
Text MD5: | 4aa916f05e2552f345fc29510a8897cc |
Transpilation MD5: | d970db1332e0cfb71503e957de453877 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-27 14:11:21 |
Source code size: | 420 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 187 / 292 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |