1 | static int minXOfChildrenExcept(final Container c, Component... except) { |
2 | final Set<Component> set = asSet(except); |
3 | ret swing(func -> int { |
4 | int x = c.getWidth(); |
5 | for (Component child : getChildren(c)) |
6 | if (!set.contains(child)) |
7 | x = min(x, child.getX()); |
8 | ret x; |
9 | }); |
10 | } |
Began life as a copy of #1020053
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: | #1020055 |
Snippet name: | minXOfChildrenExcept |
Eternal ID of this version: | #1020055/2 |
Text MD5: | f0f6eb35f52d7ebbc75fc057e5139f20 |
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:27:55 |
Source code size: | 306 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 312 / 351 |
Version history: | 1 change(s) |
Referenced in: | [show references] |