List of utility methods to do Array Contains
boolean | contains(double[] array, double valueToFind, double tolerance) Checks if a value falling within the given tolerance is in the given array. return indexOf(array, valueToFind, 0, tolerance) != INDEX_NOT_FOUND;
|
boolean | contains(final byte[] pItems, final byte pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(final char[] pItems, final char pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(final double[] pItems, final double pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(final float[] pItems, final float pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(final int[] pItems, final int pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(final long[] pItems, final long pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(final short[] pItems, final short pItem) contains for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; return false; |
boolean | contains(float[] array, float valueToFind) Checks if the value is in the given array. The method returns return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
|
boolean | contains(int[] array, int value) contains for (int element : array) { if (element == value) { return true; return false; |