- java.lang.Object
-
- com.appslandia.common.utils.ArrayUtils
-
-
Constructor Summary
Constructors Constructor Description ArrayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]append(byte[] src1, byte[] src2)static byte[]append(byte[] src1, byte[] src2, byte[] src3)static char[]append(char[] src1, char[] src2)static char[]append(char[] src1, char[] src2, char[] src3)static String[]append(String[] src1, String[] src2)static String[]append(String[] src1, String[] src2, String[] src3)static byte[]copy(byte[] src)static voidcopy(byte[] src, byte[] dest1)static voidcopy(byte[] src, byte[] dest1, byte[] dest2)static voidcopy(byte[] src, byte[] dest1, byte[] dest2, byte[] dest3)static char[]copy(char[] src)static String[]copy(String[] src)static booleanendsWith(byte[] arr, byte[] suffix, int fromIndex)static voidfill(int[][] matrix, int value)static <T> booleanhasElements(T[] elements)static Iterator<Object>iterator(Object array)static intmax(int[] arr)static <T> Tmax(T[] arr, Comparator<T> comparator)static intmin(int[] arr)static <T> Tmin(T[] arr, Comparator<T> comparator)static voidshuffle(char[] src, Random random)static voidshuffle(int[] src, Random random)static <T> voidshuffle(T[] src, Random random)static voidswap(char[] src, int i, int j)static voidswap(int[] src, int i, int j)static <T> voidswap(T[] src, int i, int j)
-
-
-
Method Detail
-
append
public static byte[] append(byte[] src1, byte[] src2)
-
append
public static byte[] append(byte[] src1, byte[] src2, byte[] src3)
-
copy
public static void copy(byte[] src, byte[] dest1)
-
copy
public static void copy(byte[] src, byte[] dest1, byte[] dest2)
-
copy
public static void copy(byte[] src, byte[] dest1, byte[] dest2, byte[] dest3)
-
append
public static char[] append(char[] src1, char[] src2)
-
append
public static char[] append(char[] src1, char[] src2, char[] src3)
-
copy
public static byte[] copy(byte[] src)
-
copy
public static char[] copy(char[] src)
-
shuffle
public static <T> void shuffle(T[] src, Random random)
-
shuffle
public static void shuffle(int[] src, Random random)
-
shuffle
public static void shuffle(char[] src, Random random)
-
swap
public static void swap(int[] src, int i, int j)
-
swap
public static void swap(char[] src, int i, int j)
-
swap
public static <T> void swap(T[] src, int i, int j)
-
hasElements
public static <T> boolean hasElements(T[] elements)
-
fill
public static void fill(int[][] matrix, int value)
-
endsWith
public static boolean endsWith(byte[] arr, byte[] suffix, int fromIndex)
-
min
public static int min(int[] arr)
-
max
public static int max(int[] arr)
-
min
public static <T> T min(T[] arr, Comparator<T> comparator)
-
max
public static <T> T max(T[] arr, Comparator<T> comparator)
-
-