List of utility methods to do Array Has
boolean | inArray(String[] delegableOperations, String operationId) in Array boolean isDelegableOperation = false; for (int i = 0; i < delegableOperations.length && !isDelegableOperation; i++) { if (delegableOperations[i].trim().equalsIgnoreCase(operationId.trim())) { isDelegableOperation = true; return isDelegableOperation; |
boolean | inArray(String[] haystack, String needle) in Array for (int i = 0; i < haystack.length; i++) { if (haystack[i].toLowerCase().equals(needle.toLowerCase())) { return true; return false; |
boolean | inArray(T el, T[] array) in Array return findInArray(el, array) >= 0;
|
boolean | inArray(T needle, T[] hayshack) Tell whether an object is in an array for (int i = 0; i < hayshack.length; ++i) { if (needle.equals(hayshack[i])) { return true; return false; |
boolean | inArray(T[] array, T element) in Array for (T i : array) { if (i == null) { if (element == null) return true; } else if (i.equals(element)) { return true; return false; |