1 | static Class primitiveToBoxedType(Class type) { |
2 | if (type == boolean.class) return Boolean.class; |
3 | if (type == int.class) return Integer.class; |
4 | if (type == long.class) return Long.class; |
5 | if (type == float.class) return Float.class; |
6 | if (type == short.class) return Short.class; |
7 | if (type == char.class) return Character.class; |
8 | if (type == byte.class) return Byte.class; |
9 | if (type == double.class) return Double.class; |
10 | null; |
11 | } |
Began life as a copy of #1000961
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017021 |
Snippet name: | primitiveToBoxedType |
Eternal ID of this version: | #1017021/4 |
Text MD5: | e67ef4b81b7b76ce270264863b6c4d72 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-10 20:40:31 |
Source code size: | 448 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 393 / 614 |
Version history: | 3 change(s) |
Referenced in: | [show references] |