Class ArraysUtil
java.lang.Object
jodd.util.ArraysUtil
Array utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 String[]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 booleanstatic booleanstatic 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 intFinds the first occurrence in an array.static intFinds 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 String[]Inserts one array into anotherStringarray.static String[]Inserts one element into anotherStringarray.static <T> T[]insert(T[] dest, T[] src, int offset) Inserts one array into another array.static <T> T[]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[]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 String[]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[]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[]Joins arrays using provided component type.static String[]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 String[]Removes sub-array fromStringarray.static <T> T[]remove(T[] buffer, int offset, int length) Removes sub-array.static <T> T[]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 String[]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 String[]Returns subarray.static <T> T[]subarray(T[] buffer, int offset, int length) Returns subarray.static <T> T[]Returns subarray.static StringtoString(boolean[] array) Converts an array to string.static StringtoString(byte[] array) Converts an array to string.static StringtoString(char[] array) Converts an array to string.static StringtoString(double[] array) Converts an array to string.static StringtoString(float[] array) Converts an array to string.static StringtoString(int[] array) Converts an array to string.static StringtoString(long[] array) Converts an array to string.static StringtoString(short[] array) Converts an array to string.static StringConverts an array to string.static StringConverts an array to string.static String[]toStringArray(boolean[] array) Converts an array to string array.static String[]toStringArray(byte[] array) Converts an array to string array.static String[]toStringArray(char[] array) Converts an array to string array.static String[]toStringArray(double[] array) Converts an array to string array.static String[]toStringArray(float[] array) Converts an array to string array.static String[]toStringArray(int[] array) Converts an array to string array.static String[]toStringArray(long[] array) Converts an array to string array.static String[]toStringArray(short[] array) Converts an array to string array.static String[]toStringArray(Object[] array) Converts an array to string array.static String[]toStringArray(String[] array) Converts an array to string array.static boolean[]Converts to primitive array.static byte[]Converts to primitive array.static char[]Converts to primitive array.static double[]Converts to primitive array.static float[]Converts to primitive array.static int[]Converts to primitive array.static long[]Converts to primitive array.static short[]Converts to primitive array.static Boolean[]valuesOf(boolean[] array) Converts to object array.static Byte[]valuesOf(byte[] array) Converts to object array.static Character[]valuesOf(char[] array) Converts to object array.static Double[]valuesOf(double[] array) Converts to object array.static Float[]valuesOf(float[] array) Converts to object array.static Integer[]valuesOf(int[] array) Converts to object array.static Long[]valuesOf(long[] array) Converts to object array.static Short[]valuesOf(short[] array) Converts to object array.
-
Constructor Details
-
ArraysUtil
public ArraysUtil()
-
-
Method Details
-
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
Joins arrays using provided component type. -
join
-
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
-
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
-
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
Removes sub-array. -
remove
-
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
Returns subarray. -
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
Inserts one array into another array. -
insert
Inserts one element into another array. -
insert
-
insert
-
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
Inserts one array into another at given offset. -
insertAt
-
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
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
Converts to object array. -
values
Converts to primitive array. -
valuesOf
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
-
contains
-
indexOf
-
contains
-
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
-
toString
-
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toString
Converts an array to string. Elements are separated by comma. Returned string contains no brackets. -
toStringArray
-
toStringArray
-
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array. -
toStringArray
Converts an array to string array.
-