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

Method swap

output/java_guava/1.4.18/ObjectArrays.java:238–242  ·  view source on GitHub ↗

Swaps array[i] with array[j].

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

Source from the content-addressed store, hash-verified

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) {

Callers 1

partitionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected