1 | sO smartValueConvert1(Class type, O value) ctex { |
2 | type = primitiveToBoxedTypeOpt(type); |
3 | if (type == Int.class && !value instanceof Int) |
4 | ret toInt(trimIfString(value)); |
5 | ret value; |
6 | } |
Began life as a copy of #1026010
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026075 |
Snippet name: | smartValueConvert1 - string to int for now [dev.] |
Eternal ID of this version: | #1026075/3 |
Text MD5: | 3b5d43f500a725c0c3adc13031bcf5d8 |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-19 13:35:17 |
Source code size: | 195 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 174 / 213 |
Version history: | 2 change(s) |
Referenced in: | [show references] |