Package jodd.util
Class ArraysUtil
- java.lang.Object
-
- jodd.util.ArraysUtil
-
public class ArraysUtil extends java.lang.ObjectArray utilities.
-
-
Constructor Summary
Constructors Constructor Description ArraysUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean[]append(boolean[] buffer, boolean newElement)Appends an element tobooleanarray.static byte[]append(byte[] buffer, byte newElement)Appends an element tobytearray.static char[]append(char[] buffer, char newElement)Appends an element tochararray.static double[]append(double[] buffer, double newElement)Appends an element todoublearray.static float[]append(float[] buffer, float newElement)Appends an element tofloatarray.static int[]append(int[] buffer, int newElement)Appends an element tointarray.static long[]append(long[] buffer, long newElement)Appends an element tolongarray.static short[]append(short[] buffer, short newElement)Appends an element toshortarray.static java.lang.String[]append(java.lang.String[] buffer, java.lang.String newElement)Appends an element toStringarray.static <T> T[]append(T[] buffer, T newElement)Appends an element to array.static <T> T[]array(T... elements)Wraps elements into an array.static boolean[]booleans(boolean... elements)Wraps elements into an array.static byte[]bytes(byte... elements)Wraps elements into an array.static char[]chars(char... elements)Wraps elements into an array.static booleancontains(boolean[] array, boolean value)Returnstrueif an array contains given value.static booleancontains(boolean[] array, boolean[] sub)static booleancontains(byte[] array, byte value)Returnstrueif an array contains given value.static booleancontains(byte[] array, byte[] sub)static booleancontains(char[] array, char value)Returnstrueif an array contains given value.static booleancontains(char[] array, char[] sub)static booleancontains(double[] array, double value)Returnstrueifdoublearray contains given value.static booleancontains(double[] array, double[] sub)static booleancontains(float[] array, float value)Returnstrueiffloatarray contains given value.static booleancontains(float[] array, float[] sub)static booleancontains(int[] array, int value)Returnstrueif an array contains given value.static booleancontains(int[] array, int[] sub)static booleancontains(long[] array, long value)Returnstrueif an array contains given value.static booleancontains(long[] array, long[] sub)static booleancontains(short[] array, short value)Returnstrueif an array contains given value.static booleancontains(short[] array, short[] sub)static booleancontains(java.lang.Object[] array, java.lang.Object value)static booleancontains(java.lang.Object[] array, java.lang.Object value, int startIndex)static double[]doubles(double... elements)Wraps elements into an array.static float[]floats(float... elements)Wraps elements into an array.static intindexOf(boolean[] array, boolean value)Finds the first occurrence of an element in an array.static intindexOf(boolean[] array, boolean[] sub)Finds the first occurrence in an array.static intindexOf(boolean[] array, boolean[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(boolean[] array, boolean[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(boolean[] array, boolean value, int startIndex)Finds the first occurrence of given value in an array from specified given position.static intindexOf(boolean[] array, boolean value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(byte[] array, byte value)Finds the first occurrence of an element in an array.static intindexOf(byte[] array, byte[] sub)Finds the first occurrence in an array.static intindexOf(byte[] array, byte[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(byte[] array, byte[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(byte[] array, byte value, int startIndex)Finds the first occurrence of given value in an array from specified given position.static intindexOf(byte[] array, byte value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(char[] array, char value)Finds the first occurrence of an element in an array.static intindexOf(char[] array, char[] sub)Finds the first occurrence in an array.static intindexOf(char[] array, char[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(char[] array, char[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(char[] array, char value, int startIndex)Finds the first occurrence of given value in an array from specified given position.static intindexOf(char[] array, char value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(double[] array, double value)Finds the first occurrence of value indoublearray.static intindexOf(double[] array, double[] sub)Finds the first occurrence in an array.static intindexOf(double[] array, double[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(double[] array, double[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(double[] array, double value, int startIndex)Finds the first occurrence of given value indoublearray from specified given position.static intindexOf(double[] array, double value, int startIndex, int endIndex)Finds the first occurrence indoublearray from specified given position and upto given length.static intindexOf(float[] array, float value)Finds the first occurrence of value infloatarray.static intindexOf(float[] array, float[] sub)Finds the first occurrence in an array.static intindexOf(float[] array, float[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(float[] array, float[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(float[] array, float value, int startIndex)Finds the first occurrence of given value infloatarray from specified given position.static intindexOf(float[] array, float value, int startIndex, int endIndex)Finds the first occurrence infloatarray from specified given position and upto given length.static intindexOf(int[] array, int value)Finds the first occurrence of an element in an array.static intindexOf(int[] array, int[] sub)Finds the first occurrence in an array.static intindexOf(int[] array, int[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(int[] array, int[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(int[] array, int value, int startIndex)Finds the first occurrence of given value in an array from specified given position.static intindexOf(int[] array, int value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(long[] array, long value)Finds the first occurrence of an element in an array.static intindexOf(long[] array, long[] sub)Finds the first occurrence in an array.static intindexOf(long[] array, long[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(long[] array, long[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(long[] array, long value, int startIndex)Finds the first occurrence of given value in an array from specified given position.static intindexOf(long[] array, long value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(short[] array, short value)Finds the first occurrence of an element in an array.static intindexOf(short[] array, short[] sub)Finds the first occurrence in an array.static intindexOf(short[] array, short[] sub, int startIndex)Finds the first occurrence in an array from specified given position.static intindexOf(short[] array, short[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(short[] array, short value, int startIndex)Finds the first occurrence of given value in an array from specified given position.static intindexOf(short[] array, short value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.static intindexOf(java.lang.Object[] array, java.lang.Object value)Finds the first occurrence in an array.static intindexOf(java.lang.Object[] array, java.lang.Object value, int startIndex)Finds the first occurrence in an array from specified given position.static boolean[]insert(boolean[] dest, boolean[] src, int offset)Inserts one array into anotherbooleanarray.static boolean[]insert(boolean[] dest, boolean src, int offset)Inserts one element into anotherbooleanarray.static byte[]insert(byte[] dest, byte[] src, int offset)Inserts one array into anotherbytearray.static byte[]insert(byte[] dest, byte src, int offset)Inserts one element into anotherbytearray.static char[]insert(char[] dest, char[] src, int offset)Inserts one array into anotherchararray.static char[]insert(char[] dest, char src, int offset)Inserts one element into anotherchararray.static double[]insert(double[] dest, double[] src, int offset)Inserts one array into anotherdoublearray.static double[]insert(double[] dest, double src, int offset)Inserts one element into anotherdoublearray.static float[]insert(float[] dest, float[] src, int offset)Inserts one array into anotherfloatarray.static float[]insert(float[] dest, float src, int offset)Inserts one element into anotherfloatarray.static int[]insert(int[] dest, int[] src, int offset)Inserts one array into anotherintarray.static int[]insert(int[] dest, int src, int offset)Inserts one element into anotherintarray.static long[]insert(long[] dest, long[] src, int offset)Inserts one array into anotherlongarray.static long[]insert(long[] dest, long src, int offset)Inserts one element into anotherlongarray.static short[]insert(short[] dest, short[] src, int offset)Inserts one array into anothershortarray.static short[]insert(short[] dest, short src, int offset)Inserts one element into anothershortarray.static java.lang.String[]insert(java.lang.String[] dest, java.lang.String[] src, int offset)Inserts one array into anotherStringarray.static java.lang.String[]insert(java.lang.String[] dest, java.lang.String src, int offset)Inserts one element into anotherStringarray.static <T> T[]insert(T[] dest, T[] src, int offset)Inserts one array into another array.static <T> T[]insert(T[] dest, T[] src, int offset, java.lang.Class componentType)Inserts one array into another array.static <T> T[]insert(T[] dest, T src, int offset)Inserts one element into an array.static <T> T[]insert(T[] dest, T src, int offset, java.lang.Class componentType)Inserts one element into another array.static boolean[]insertAt(boolean[] dest, boolean[] src, int offset)Inserts one array into another by replacing specified offset.static byte[]insertAt(byte[] dest, byte[] src, int offset)Inserts one array into another by replacing specified offset.static char[]insertAt(char[] dest, char[] src, int offset)Inserts one array into another by replacing specified offset.static double[]insertAt(double[] dest, double[] src, int offset)Inserts one array into another by replacing specified offset.static float[]insertAt(float[] dest, float[] src, int offset)Inserts one array into another by replacing specified offset.static int[]insertAt(int[] dest, int[] src, int offset)Inserts one array into another by replacing specified offset.static long[]insertAt(long[] dest, long[] src, int offset)Inserts one array into another by replacing specified offset.static short[]insertAt(short[] dest, short[] src, int offset)Inserts one array into another by replacing specified offset.static java.lang.String[]insertAt(java.lang.String[] dest, java.lang.String[] src, int offset)Inserts one array into another by replacing specified offset.static <T> T[]insertAt(T[] dest, T[] src, int offset)Inserts one array into another at given offset.static <T> T[]insertAt(T[] dest, T[] src, int offset, java.lang.Class componentType)Inserts one array into another at given offset.static int[]ints(int... elements)Wraps elements into an array.static boolean[]join(boolean[]... arrays)Joinbooleanarrays.static byte[]join(byte[]... arrays)Joinbytearrays.static char[]join(char[]... arrays)Joinchararrays.static double[]join(double[]... arrays)Joindoublearrays.static float[]join(float[]... arrays)Joinfloatarrays.static int[]join(int[]... arrays)Joinintarrays.static long[]join(long[]... arrays)Joinlongarrays.static short[]join(short[]... arrays)Joinshortarrays.static <T> T[]join(java.lang.Class<T> componentType, T[][] arrays)Joins arrays using provided component type.static java.lang.String[]join(java.lang.String[]... arrays)JoinStringarrays.static <T> T[]join(T[]... arrays)Joins arrays.static long[]longs(long... elements)Wraps elements into an array.static boolean[]remove(boolean[] buffer, int offset, int length)Removes sub-array frombooleanarray.static byte[]remove(byte[] buffer, int offset, int length)Removes sub-array frombytearray.static char[]remove(char[] buffer, int offset, int length)Removes sub-array fromchararray.static double[]remove(double[] buffer, int offset, int length)Removes sub-array fromdoublearray.static float[]remove(float[] buffer, int offset, int length)Removes sub-array fromfloatarray.static int[]remove(int[] buffer, int offset, int length)Removes sub-array fromintarray.static long[]remove(long[] buffer, int offset, int length)Removes sub-array fromlongarray.static short[]remove(short[] buffer, int offset, int length)Removes sub-array fromshortarray.static java.lang.String[]remove(java.lang.String[] buffer, int offset, int length)Removes sub-array fromStringarray.static <T> T[]remove(T[] buffer, int offset, int length)Removes sub-array.static <T> T[]remove(T[] buffer, int offset, int length, java.lang.Class<T> componentType)Removes sub-array.static boolean[]resize(boolean[] buffer, int newSize)Resizes abooleanarray.static byte[]resize(byte[] buffer, int newSize)Resizes abytearray.static char[]resize(char[] buffer, int newSize)Resizes achararray.static double[]resize(double[] buffer, int newSize)Resizes adoublearray.static float[]resize(float[] buffer, int newSize)Resizes afloatarray.static int[]resize(int[] buffer, int newSize)Resizes aintarray.static long[]resize(long[] buffer, int newSize)Resizes alongarray.static short[]resize(short[] buffer, int newSize)Resizes ashortarray.static java.lang.String[]resize(java.lang.String[] buffer, int newSize)Resizes aStringarray.static <T> T[]resize(T[] buffer, int newSize)Resizes an array.static short[]shorts(short... elements)Wraps elements into an array.static boolean[]subarray(boolean[] buffer, int offset, int length)Returns subarray.static byte[]subarray(byte[] buffer, int offset, int length)Returns subarray.static char[]subarray(char[] buffer, int offset, int length)Returns subarray.static double[]subarray(double[] buffer, int offset, int length)Returns subarray.static float[]subarray(float[] buffer, int offset, int length)Returns subarray.static int[]subarray(int[] buffer, int offset, int length)Returns subarray.static long[]subarray(long[] buffer, int offset, int length)Returns subarray.static short[]subarray(short[] buffer, int offset, int length)Returns subarray.static java.lang.String[]subarray(java.lang.String[] buffer, int offset, int length)Returns subarray.static <T> T[]subarray(T[] buffer, int offset, int length)Returns subarray.static <T> T[]subarray(T[] buffer, int offset, int length, java.lang.Class<T> componentType)Returns subarray.static java.lang.StringtoString(boolean[] array)Converts an array to string.static java.lang.StringtoString(byte[] array)Converts an array to string.static java.lang.StringtoString(char[] array)Converts an array to string.static java.lang.StringtoString(double[] array)Converts an array to string.static java.lang.StringtoString(float[] array)Converts an array to string.static java.lang.StringtoString(int[] array)Converts an array to string.static java.lang.StringtoString(long[] array)Converts an array to string.static java.lang.StringtoString(short[] array)Converts an array to string.static java.lang.StringtoString(java.lang.Object[] array)Converts an array to string.static java.lang.StringtoString(java.lang.String[] array)Converts an array to string.static java.lang.String[]toStringArray(boolean[] array)Converts an array to string array.static java.lang.String[]toStringArray(byte[] array)Converts an array to string array.static java.lang.String[]toStringArray(char[] array)Converts an array to string array.static java.lang.String[]toStringArray(double[] array)Converts an array to string array.static java.lang.String[]toStringArray(float[] array)Converts an array to string array.static java.lang.String[]toStringArray(int[] array)Converts an array to string array.static java.lang.String[]toStringArray(long[] array)Converts an array to string array.static java.lang.String[]toStringArray(short[] array)Converts an array to string array.static java.lang.String[]toStringArray(java.lang.Object[] array)Converts an array to string array.static java.lang.String[]toStringArray(java.lang.String[] array)Converts an array to string array.static boolean[]values(java.lang.Boolean[] array)Converts to primitive array.static byte[]values(java.lang.Byte[] array)Converts to primitive array.static char[]values(java.lang.Character[] array)Converts to primitive array.static double[]values(java.lang.Double[] array)Converts to primitive array.static float[]values(java.lang.Float[] array)Converts to primitive array.static int[]values(java.lang.Integer[] array)Converts to primitive array.static long[]values(java.lang.Long[] array)Converts to primitive array.static short[]values(java.lang.Short[] array)Converts to primitive array.static java.lang.Boolean[]valuesOf(boolean[] array)Converts to object array.static java.lang.Byte[]valuesOf(byte[] array)Converts to object array.static java.lang.Character[]valuesOf(char[] array)Converts to object array.static java.lang.Double[]valuesOf(double[] array)Converts to object array.static java.lang.Float[]valuesOf(float[] array)Converts to object array.static java.lang.Integer[]valuesOf(int[] array)Converts to object array.static java.lang.Long[]valuesOf(long[] array)Converts to object array.static java.lang.Short[]valuesOf(short[] array)Converts to object array.
-
-
-
Method Detail
-
array
public static <T> T[] array(T... elements)
Wraps elements into an array.
-
bytes
public static byte[] bytes(byte... elements)
Wraps elements into an array.
-
chars
public static char[] chars(char... elements)
Wraps elements into an array.
-
shorts
public static short[] shorts(short... elements)
Wraps elements into an array.
-
ints
public static int[] ints(int... elements)
Wraps elements into an array.
-
longs
public static long[] longs(long... elements)
Wraps elements into an array.
-
floats
public static float[] floats(float... elements)
Wraps elements into an array.
-
doubles
public static double[] doubles(double... elements)
Wraps elements into an array.
-
booleans
public static boolean[] booleans(boolean... elements)
Wraps elements into an array.
-
join
public static <T> T[] join(T[]... arrays)
Joins arrays. Component type is resolved from the array argument.
-
join
public static <T> T[] join(java.lang.Class<T> componentType, T[][] arrays)Joins arrays using provided component type.
-
join
public static java.lang.String[] join(java.lang.String[]... arrays)
JoinStringarrays.
-
join
public static byte[] join(byte[]... arrays)
Joinbytearrays.
-
join
public static char[] join(char[]... arrays)
Joinchararrays.
-
join
public static short[] join(short[]... arrays)
Joinshortarrays.
-
join
public static int[] join(int[]... arrays)
Joinintarrays.
-
join
public static long[] join(long[]... arrays)
Joinlongarrays.
-
join
public static float[] join(float[]... arrays)
Joinfloatarrays.
-
join
public static double[] join(double[]... arrays)
Joindoublearrays.
-
join
public static boolean[] join(boolean[]... arrays)
Joinbooleanarrays.
-
resize
public static <T> T[] resize(T[] buffer, int newSize)Resizes an array.
-
resize
public static java.lang.String[] resize(java.lang.String[] buffer, int newSize)Resizes aStringarray.
-
resize
public static byte[] resize(byte[] buffer, int newSize)Resizes abytearray.
-
resize
public static char[] resize(char[] buffer, int newSize)Resizes achararray.
-
resize
public static short[] resize(short[] buffer, int newSize)Resizes ashortarray.
-
resize
public static int[] resize(int[] buffer, int newSize)Resizes aintarray.
-
resize
public static long[] resize(long[] buffer, int newSize)Resizes alongarray.
-
resize
public static float[] resize(float[] buffer, int newSize)Resizes afloatarray.
-
resize
public static double[] resize(double[] buffer, int newSize)Resizes adoublearray.
-
resize
public static boolean[] resize(boolean[] buffer, int newSize)Resizes abooleanarray.
-
append
public static <T> T[] append(T[] buffer, T newElement)Appends an element to array.
-
append
public static java.lang.String[] append(java.lang.String[] buffer, java.lang.String newElement)Appends an element toStringarray.
-
append
public static byte[] append(byte[] buffer, byte newElement)Appends an element tobytearray.
-
append
public static char[] append(char[] buffer, char newElement)Appends an element tochararray.
-
append
public static short[] append(short[] buffer, short newElement)Appends an element toshortarray.
-
append
public static int[] append(int[] buffer, int newElement)Appends an element tointarray.
-
append
public static long[] append(long[] buffer, long newElement)Appends an element tolongarray.
-
append
public static float[] append(float[] buffer, float newElement)Appends an element tofloatarray.
-
append
public static double[] append(double[] buffer, double newElement)Appends an element todoublearray.
-
append
public static boolean[] append(boolean[] buffer, boolean newElement)Appends an element tobooleanarray.
-
remove
public static <T> T[] remove(T[] buffer, int offset, int length)Removes sub-array.
-
remove
public static <T> T[] remove(T[] buffer, int offset, int length, java.lang.Class<T> componentType)Removes sub-array.
-
remove
public static java.lang.String[] remove(java.lang.String[] buffer, int offset, int length)Removes sub-array fromStringarray.
-
remove
public static byte[] remove(byte[] buffer, int offset, int length)Removes sub-array frombytearray.
-
remove
public static char[] remove(char[] buffer, int offset, int length)Removes sub-array fromchararray.
-
remove
public static short[] remove(short[] buffer, int offset, int length)Removes sub-array fromshortarray.
-
remove
public static int[] remove(int[] buffer, int offset, int length)Removes sub-array fromintarray.
-
remove
public static long[] remove(long[] buffer, int offset, int length)Removes sub-array fromlongarray.
-
remove
public static float[] remove(float[] buffer, int offset, int length)Removes sub-array fromfloatarray.
-
remove
public static double[] remove(double[] buffer, int offset, int length)Removes sub-array fromdoublearray.
-
remove
public static boolean[] remove(boolean[] buffer, int offset, int length)Removes sub-array frombooleanarray.
-
subarray
public static <T> T[] subarray(T[] buffer, int offset, int length)Returns subarray.
-
subarray
public static <T> T[] subarray(T[] buffer, int offset, int length, java.lang.Class<T> componentType)Returns subarray.
-
subarray
public static java.lang.String[] subarray(java.lang.String[] buffer, int offset, int length)Returns subarray.
-
subarray
public static byte[] subarray(byte[] buffer, int offset, int length)Returns subarray.
-
subarray
public static char[] subarray(char[] buffer, int offset, int length)Returns subarray.
-
subarray
public static short[] subarray(short[] buffer, int offset, int length)Returns subarray.
-
subarray
public static int[] subarray(int[] buffer, int offset, int length)Returns subarray.
-
subarray
public static long[] subarray(long[] buffer, int offset, int length)Returns subarray.
-
subarray
public static float[] subarray(float[] buffer, int offset, int length)Returns subarray.
-
subarray
public static double[] subarray(double[] buffer, int offset, int length)Returns subarray.
-
subarray
public static boolean[] subarray(boolean[] buffer, int offset, int length)Returns subarray.
-
insert
public static <T> T[] insert(T[] dest, T[] src, int offset)Inserts one array into another array.
-
insert
public static <T> T[] insert(T[] dest, T src, int offset)Inserts one element into an array.
-
insert
public static <T> T[] insert(T[] dest, T[] src, int offset, java.lang.Class componentType)Inserts one array into another array.
-
insert
public static <T> T[] insert(T[] dest, T src, int offset, java.lang.Class componentType)Inserts one element into another array.
-
insert
public static java.lang.String[] insert(java.lang.String[] dest, java.lang.String[] src, int offset)Inserts one array into anotherStringarray.
-
insert
public static java.lang.String[] insert(java.lang.String[] dest, java.lang.String src, int offset)Inserts one element into anotherStringarray.
-
insert
public static byte[] insert(byte[] dest, byte[] src, int offset)Inserts one array into anotherbytearray.
-
insert
public static byte[] insert(byte[] dest, byte src, int offset)Inserts one element into anotherbytearray.
-
insert
public static char[] insert(char[] dest, char[] src, int offset)Inserts one array into anotherchararray.
-
insert
public static char[] insert(char[] dest, char src, int offset)Inserts one element into anotherchararray.
-
insert
public static short[] insert(short[] dest, short[] src, int offset)Inserts one array into anothershortarray.
-
insert
public static short[] insert(short[] dest, short src, int offset)Inserts one element into anothershortarray.
-
insert
public static int[] insert(int[] dest, int[] src, int offset)Inserts one array into anotherintarray.
-
insert
public static int[] insert(int[] dest, int src, int offset)Inserts one element into anotherintarray.
-
insert
public static long[] insert(long[] dest, long[] src, int offset)Inserts one array into anotherlongarray.
-
insert
public static long[] insert(long[] dest, long src, int offset)Inserts one element into anotherlongarray.
-
insert
public static float[] insert(float[] dest, float[] src, int offset)Inserts one array into anotherfloatarray.
-
insert
public static float[] insert(float[] dest, float src, int offset)Inserts one element into anotherfloatarray.
-
insert
public static double[] insert(double[] dest, double[] src, int offset)Inserts one array into anotherdoublearray.
-
insert
public static double[] insert(double[] dest, double src, int offset)Inserts one element into anotherdoublearray.
-
insert
public static boolean[] insert(boolean[] dest, boolean[] src, int offset)Inserts one array into anotherbooleanarray.
-
insert
public static boolean[] insert(boolean[] dest, boolean src, int offset)Inserts one element into anotherbooleanarray.
-
insertAt
public static <T> T[] insertAt(T[] dest, T[] src, int offset)Inserts one array into another at given offset.
-
insertAt
public static <T> T[] insertAt(T[] dest, T[] src, int offset, java.lang.Class componentType)Inserts one array into another at given offset.
-
insertAt
public static java.lang.String[] insertAt(java.lang.String[] dest, java.lang.String[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static byte[] insertAt(byte[] dest, byte[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static char[] insertAt(char[] dest, char[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static short[] insertAt(short[] dest, short[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static int[] insertAt(int[] dest, int[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static long[] insertAt(long[] dest, long[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static float[] insertAt(float[] dest, float[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static double[] insertAt(double[] dest, double[] src, int offset)Inserts one array into another by replacing specified offset.
-
insertAt
public static boolean[] insertAt(boolean[] dest, boolean[] src, int offset)Inserts one array into another by replacing specified offset.
-
values
public static byte[] values(java.lang.Byte[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Byte[] valuesOf(byte[] array)
Converts to object array.
-
values
public static char[] values(java.lang.Character[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Character[] valuesOf(char[] array)
Converts to object array.
-
values
public static short[] values(java.lang.Short[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Short[] valuesOf(short[] array)
Converts to object array.
-
values
public static int[] values(java.lang.Integer[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Integer[] valuesOf(int[] array)
Converts to object array.
-
values
public static long[] values(java.lang.Long[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Long[] valuesOf(long[] array)
Converts to object array.
-
values
public static float[] values(java.lang.Float[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Float[] valuesOf(float[] array)
Converts to object array.
-
values
public static double[] values(java.lang.Double[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Double[] valuesOf(double[] array)
Converts to object array.
-
values
public static boolean[] values(java.lang.Boolean[] array)
Converts to primitive array.
-
valuesOf
public static java.lang.Boolean[] valuesOf(boolean[] array)
Converts to object array.
-
indexOf
public static int indexOf(byte[] array, byte value)Finds the first occurrence of an element in an array.
-
contains
public static boolean contains(byte[] array, byte value)Returnstrueif an array contains given value.
-
indexOf
public static int indexOf(byte[] array, byte value, int startIndex)Finds the first occurrence of given value in an array from specified given position.
-
indexOf
public static int indexOf(byte[] array, byte value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(char[] array, char value)Finds the first occurrence of an element in an array.
-
contains
public static boolean contains(char[] array, char value)Returnstrueif an array contains given value.
-
indexOf
public static int indexOf(char[] array, char value, int startIndex)Finds the first occurrence of given value in an array from specified given position.
-
indexOf
public static int indexOf(char[] array, char value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(short[] array, short value)Finds the first occurrence of an element in an array.
-
contains
public static boolean contains(short[] array, short value)Returnstrueif an array contains given value.
-
indexOf
public static int indexOf(short[] array, short value, int startIndex)Finds the first occurrence of given value in an array from specified given position.
-
indexOf
public static int indexOf(short[] array, short value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(int[] array, int value)Finds the first occurrence of an element in an array.
-
contains
public static boolean contains(int[] array, int value)Returnstrueif an array contains given value.
-
indexOf
public static int indexOf(int[] array, int value, int startIndex)Finds the first occurrence of given value in an array from specified given position.
-
indexOf
public static int indexOf(int[] array, int value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(long[] array, long value)Finds the first occurrence of an element in an array.
-
contains
public static boolean contains(long[] array, long value)Returnstrueif an array contains given value.
-
indexOf
public static int indexOf(long[] array, long value, int startIndex)Finds the first occurrence of given value in an array from specified given position.
-
indexOf
public static int indexOf(long[] array, long value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(boolean[] array, boolean value)Finds the first occurrence of an element in an array.
-
contains
public static boolean contains(boolean[] array, boolean value)Returnstrueif an array contains given value.
-
indexOf
public static int indexOf(boolean[] array, boolean value, int startIndex)Finds the first occurrence of given value in an array from specified given position.
-
indexOf
public static int indexOf(boolean[] array, boolean value, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(float[] array, float value)Finds the first occurrence of value infloatarray.
-
contains
public static boolean contains(float[] array, float value)Returnstrueiffloatarray contains given value.
-
indexOf
public static int indexOf(float[] array, float value, int startIndex)Finds the first occurrence of given value infloatarray from specified given position.
-
indexOf
public static int indexOf(float[] array, float value, int startIndex, int endIndex)Finds the first occurrence infloatarray from specified given position and upto given length.
-
indexOf
public static int indexOf(double[] array, double value)Finds the first occurrence of value indoublearray.
-
contains
public static boolean contains(double[] array, double value)Returnstrueifdoublearray contains given value.
-
indexOf
public static int indexOf(double[] array, double value, int startIndex)Finds the first occurrence of given value indoublearray from specified given position.
-
indexOf
public static int indexOf(double[] array, double value, int startIndex, int endIndex)Finds the first occurrence indoublearray from specified given position and upto given length.
-
indexOf
public static int indexOf(java.lang.Object[] array, java.lang.Object value)Finds the first occurrence in an array.
-
contains
public static boolean contains(java.lang.Object[] array, java.lang.Object value)
-
indexOf
public static int indexOf(java.lang.Object[] array, java.lang.Object value, int startIndex)Finds the first occurrence in an array from specified given position.
-
contains
public static boolean contains(java.lang.Object[] array, java.lang.Object value, int startIndex)
-
indexOf
public static int indexOf(byte[] array, byte[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(byte[] array, byte[] sub)
-
indexOf
public static int indexOf(byte[] array, byte[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(byte[] array, byte[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(char[] array, char[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(char[] array, char[] sub)
-
indexOf
public static int indexOf(char[] array, char[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(char[] array, char[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(short[] array, short[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(short[] array, short[] sub)
-
indexOf
public static int indexOf(short[] array, short[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(short[] array, short[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(int[] array, int[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(int[] array, int[] sub)
-
indexOf
public static int indexOf(int[] array, int[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(int[] array, int[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(long[] array, long[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(long[] array, long[] sub)
-
indexOf
public static int indexOf(long[] array, long[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(long[] array, long[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(boolean[] array, boolean[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(boolean[] array, boolean[] sub)
-
indexOf
public static int indexOf(boolean[] array, boolean[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(boolean[] array, boolean[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(float[] array, float[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(float[] array, float[] sub)
-
indexOf
public static int indexOf(float[] array, float[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(float[] array, float[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
indexOf
public static int indexOf(double[] array, double[] sub)Finds the first occurrence in an array.
-
contains
public static boolean contains(double[] array, double[] sub)
-
indexOf
public static int indexOf(double[] array, double[] sub, int startIndex)Finds the first occurrence in an array from specified given position.
-
indexOf
public static int indexOf(double[] array, double[] sub, int startIndex, int endIndex)Finds the first occurrence in an array from specified given position and upto given length.
-
toString
public static java.lang.String toString(java.lang.Object[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(java.lang.String[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(byte[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(char[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(short[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(int[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(long[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(float[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(double[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toString
public static java.lang.String toString(boolean[] array)
Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
-
toStringArray
public static java.lang.String[] toStringArray(java.lang.Object[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(java.lang.String[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(byte[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(char[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(short[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(int[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(long[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(float[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(double[] array)
Converts an array to string array.
-
toStringArray
public static java.lang.String[] toStringArray(boolean[] array)
Converts an array to string array.
-
-