Java Utililty Methods Array Has

List of utility methods to do Array Has

Description

The list of methods to do Array Has are organized into topic(s).

Method

booleaninArray(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;
booleaninArray(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;
booleaninArray(T el, T[] array)
in Array
return findInArray(el, array) >= 0;
booleaninArray(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;
booleaninArray(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;