Returns the component-wise minimum of two Insets. @param a The first Insets. @param b The second Insets. @return an Insets instance where the inset on each side is the smaller of the insets on that side from a and b.
(@NonNull Insets a, @NonNull Insets b)
| 124 | * the insets on that side from {@code a} and {@code b}. |
| 125 | */ |
| 126 | @NonNull |
| 127 | public static Insets min(@NonNull Insets a, @NonNull Insets b) { |
| 128 | return Insets.of(Math.min(a.left, b.left), Math.min(a.top, b.top), |
| 129 | Math.min(a.right, b.right), Math.min(a.bottom, b.bottom)); |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Two Insets instances are equal if they belong to the same class and their fields are |
no test coverage detected