Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1034174 // maxDimension

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (109L/1K).

static Dimension maxDimension(Dimension a, Dimension b) {
  ret a == null ? b : b == null ? a
    : new Dimension(max(a.width, b.width), max(a.height, b.height));
}

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: 129 / 209
Version history: 1 change(s)
Referenced in: [show references]