MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / swap

Method swap

Ports/CLDC11/src/java/util/Arrays.java:2781–2785  ·  view source on GitHub ↗
(int a, int b, Object[] arr)

Source from the content-addressed store, hash-verified

2779 /// - `arr`: @param arr -
2780 /// the array in which to swap elements.
2781 private static void swap(int a, int b, Object[] arr) {
2782 Object tmp = arr[a];
2783 arr[a] = arr[b];
2784 arr[b] = tmp;
2785 }
2786
2787 /// Performs a sort on the section of the array between the given indices
2788 /// using a mergesort with exponential search algorithm (in which the merge

Callers 1

copySwapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected