(int l, int t, int w, int h)
| 40 | } |
| 41 | |
| 42 | @NotNull @Contract("_, _, _, _ -> new") |
| 43 | public static IRect makeXYWH(int l, int t, int w, int h) { |
| 44 | if (w < 0) |
| 45 | throw new IllegalArgumentException("IRect::makeXYWH expected w >= 0, got: " + w); |
| 46 | if (h < 0) |
| 47 | throw new IllegalArgumentException("IRect::makeXYWH expected h >= 0, got: " + h); |
| 48 | return w >= 0 && h >= 0 ? new IRect(l, t, l + w, t + h) : null; |
| 49 | } |
| 50 | |
| 51 | @NotNull @Contract("_, _ -> new") |
| 52 | public static IRect makeWH(int w, int h) { |
no outgoing calls
no test coverage detected