Libraryless. Click here for Pure Java version (32L/1K).
1 | static Area toArea(Shape s) { |
2 | if (s == null) null; |
3 | if (s cast Area) ret s; |
4 | ret new Area(s); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033842 |
Snippet name: | toArea |
Eternal ID of this version: | #1033842/1 |
Text MD5: | f32c059f4df5ef627dbce65ba5f1282d |
Transpilation MD5: | 1c8878ac0c76e6f561a5efb2246f7d1b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-06 23:58:17 |
Source code size: | 103 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 118 / 184 |
Referenced in: | [show references] |