1 | static int minXOfChildren(final Container c) { |
2 | ret swing(func -> int { |
3 | int x = c.getWidth(); |
4 | for (Component child : getChildren(c)) |
5 | x = min(x, child.getX()); |
6 | ret x; |
7 | }); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020053 |
Snippet name: | minXOfChildren |
Eternal ID of this version: | #1020053/2 |
Text MD5: | 144b8ca6a5c3a5d5094569224a83e86d |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-05 11:19:12 |
Source code size: | 199 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 277 / 324 |
Version history: | 1 change(s) |
Referenced in: | [show references] |