static <A> A nuLike optCast(Class<A> c, O o) { ret isInstance(c, o) ? (A) o : null; }
download show line numbers debug dex old transpilations
Travelled to 19 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, odhhsrjjbcgr, omdjrrnzbjjv, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1005288 |
Snippet name: | optCast - cast to type or return null if not an instance of it |
Eternal ID of this version: | #1005288/3 |
Text MD5: | 651f2739d7a7a04213f2764c21bf7098 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-02 15:55:10 |
Source code size: | 89 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 582 / 639 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1034565 - castTo - cast to type or fail (null is allowed) |