Returns the component-wise maximum 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 larger of the insets on that side from a and b.
(@NonNull Insets a, @NonNull Insets b)
| 110 | * the insets on that side from {@code a} and {@code b}. |
| 111 | */ |
| 112 | @NonNull |
| 113 | public static Insets max(@NonNull Insets a, @NonNull Insets b) { |
| 114 | return Insets.of(Math.max(a.left, b.left), Math.max(a.top, b.top), |
| 115 | Math.max(a.right, b.right), Math.max(a.bottom, b.bottom)); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Returns the component-wise minimum of two Insets. |
no test coverage detected