Add two Insets. @param a The first Insets to add. @param b The second Insets to add. @return a + b, i. e. all insets on every side are added together.
(@NonNull Insets a, @NonNull Insets b)
| 85 | * @return a + b, i. e. all insets on every side are added together. |
| 86 | */ |
| 87 | @NonNull |
| 88 | public static Insets add(@NonNull Insets a, @NonNull Insets b) { |
| 89 | return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Subtract two Insets. |