Return an Insets instance with the appropriate values. @param left the left inset @param top the top inset @param right the right inset @param bottom the bottom inset @return Insets instance with the appropriate values
(int left, int top, int right, int bottom)
| 59 | * @return Insets instance with the appropriate values |
| 60 | */ |
| 61 | @NonNull |
| 62 | public static Insets of(int left, int top, int right, int bottom) { |
| 63 | if (left == 0 && top == 0 && right == 0 && bottom == 0) { |
| 64 | return NONE; |
| 65 | } |
| 66 | return new Insets(left, top, right, bottom); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Return an Insets instance with the appropriate values. |
no outgoing calls
no test coverage detected