static int minXOfChildrenExcept(final Container c, Component... except) {
final Set<Component> set = asSet(except);
ret swing(func -> int {
int x = c.getWidth();
for (Component child : getChildren(c))
if (!set.contains(child))
x = min(x, child.getX());
ret x;
});
}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: | 779 / 794 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |