Libraryless. Click here for Pure Java version (109L/1K).
1 | static Dimension maxDimension(Dimension a, Dimension b) { |
2 | ret a == null ? b : b == null ? a |
3 | : new Dimension(max(a.width, b.width), max(a.height, b.height)); |
4 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034174 |
Snippet name: | maxDimension |
Eternal ID of this version: | #1034174/2 |
Text MD5: | cd330f340774b312b83c8c077978239c |
Transpilation MD5: | 76cc1789044fecab9e5dba0aea75f6f6 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-25 20:31:32 |
Source code size: | 167 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 211 |
Version history: | 1 change(s) |
Referenced in: | [show references] |