Package org.ddogleg.util
Class SwapElement
java.lang.Object
org.ddogleg.util.SwapElement
Convenience class for swapping elements in arrays and lists.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
swap
(byte[] array, int a, int b) static void
swap
(char[] array, int a, int b) static void
swap
(double[] array, int a, int b) static void
swap
(float[] array, int a, int b) static void
swap
(int[] array, int a, int b) static void
swap
(long[] array, int a, int b) static void
swap
(short[] array, int a, int b) static <T> void
-
Constructor Details
-
SwapElement
public SwapElement()
-
-
Method Details
-
swap
public static void swap(byte[] array, int a, int b) -
swap
public static void swap(char[] array, int a, int b) -
swap
public static void swap(short[] array, int a, int b) -
swap
public static void swap(int[] array, int a, int b) -
swap
public static void swap(long[] array, int a, int b) -
swap
public static void swap(float[] array, int a, int b) -
swap
public static void swap(double[] array, int a, int b) -
swap
-