Swaps array[i] with array[j].
(Object[] array, int i, int j)
| 236 | |
| 237 | |
| 238 | static void swap(Object[] array, int i, int j) { |
| 239 | Object temp = array[i]; |
| 240 | array[i] = array[j]; |
| 241 | array[j] = temp; |
| 242 | } |
| 243 | |
| 244 | @CanIgnoreReturnValue |
| 245 | static Object[] checkElementsNotNull(Object... array) { |