List of utility methods to do Array Last Index Of
int | arrayLastIndexOf(final T[] array, final T value) array Last Index Of for (int i = array.length; i-- > 0;) { if (value == array[i]) return i; return -1; |
int | arrayLastIndexOf(Object[] array, Object objectToFind) array Last Index Of return arrayLastIndexOf(array, objectToFind, Integer.MAX_VALUE);
|
int | lastIndexOf(boolean[] array, boolean valueToFind) last Index Of return lastIndexOf(array, valueToFind, 2147483647);
|
int | lastIndexOf(byte value, byte[] array) last Index Of if (array == null) throw new IllegalArgumentException("array cannot be null"); return lastIndexOf(value, array, 0, array.length); |
int | lastIndexOf(byte[] array, byte valueToFind) last Index Of return lastIndexOf(array, valueToFind, Integer.MAX_VALUE);
|
int | lastIndexOf(byte[] ary, byte value) Search for the last matching byte in an array of bytes return lastIndexOf(ary, 0, ary.length, value);
|
int | lastIndexOf(byte[] bytes, int pos, int len, byte b) Returns the index of the last occurrence of the specified byte in the specified array. for (int i = len - 1; i >= pos; i--) { if (bytes[i] == b) { return i; return -1; |
int | lastIndexOf(byte[] data, int offset, int length, byte val) last Index Of int i = offset + length - 1; for (; i >= offset; i--) { if (data[i] == val) { return i - offset; return -1; |
int | lastIndexOf(byte[] pattern, byte[] block) last Index Of nextPos: for (int i = pattern.length - block.length; i >= 0; i--) { for (int j = block.length - 1; j >= 0; j--) { if (pattern[j + i] == block[j]) { continue; } else { continue nextPos; return i; return -1; |
int | lastIndexOf(byte[] s, char c) last Index Of if (s == null) { return -1; for (int i = s.length - 1; i >= 0; i--) { if (s[i] == c) { return i; return -1; |