MCPcopy Create free account
hub / github.com/antlr/codebuff / swap

Method swap

corpus/java/training/guava/collect/ObjectArrays.java:220–224  ·  view source on GitHub ↗

Swaps array[i] with array[j].

(Object[] array, int i, int j)

Source from the content-addressed store, hash-verified

218 * Swaps {@code array[i]} with {@code array[j]}.
219 */
220 static void swap(Object[] array, int i, int j) {
221 Object temp = array[i];
222 array[i] = array[j];
223 array[j] = temp;
224 }
225
226 @CanIgnoreReturnValue
227 static Object[] checkElementsNotNull(Object... array) {

Callers 3

partitionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected