List of utility methods to do Array Contains
boolean | contains(Object[] array, Object objectToFind) Checks if the object is in the given array. The method returns return indexOf(array, objectToFind) != INDEX_NOT_FOUND;
|
boolean | contains(T[] array, T e) contains return indexOf(e, array) != -1;
|
boolean | contains(T[] array, T value) Checks that value is present as at least one of the elements of the array. for (T element : array) { if (element == null) { if (value == null) return true; } else { if (value != null && element.equals(value)) return true; return false; |
boolean | contains(T[] array, T value) Checks that value is present as at least one of the elements of the array. for (T element : array) { if (element == null) { if (value == null) return true; } else { if (value != null && element.equals(value)) return true; return false; |
boolean | contains(T[] array, T value) Checks that value is present as at least one of the elements of the array. for (T element : array) { if (element == null) { if (value == null) return true; } else { if (value != null && element.equals(value)) return true; return false; |
boolean | contains(T[] array, T value) contains for (T element : array) { if (element == null) { if (value == null) { return true; } else { if (value != null && element.equals(value)) { return true; ... |
boolean | contains(boolean[] array, boolean valueToFind) Checks if the value is in the given array. The method returns return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
|
boolean | contains(byte[] array, byte valueToFind) Checks if the value is in the given array. The method returns return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
|
boolean | contains(char[] array, char valueToFind) Checks if the value is in the given array. The method returns return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
|
boolean | contains(double[] array, double valueToFind) Checks if the value is in the given array. The method returns return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
|