Java Array Has inArray(String[] delegableOperations, String operationId)

Here you can find the source of inArray(String[] delegableOperations, String operationId)

Description

in Array

License

Apache License

Declaration

public static boolean inArray(String[] delegableOperations,
            String operationId) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean inArray(String[] delegableOperations,
            String operationId) {
        boolean isDelegableOperation = false;

        for (int i = 0; i < delegableOperations.length
                && !isDelegableOperation; i++) {
            if (delegableOperations[i].trim().equalsIgnoreCase(
                    operationId.trim())) {
                isDelegableOperation = true;
            }/*from  w  w  w. j a  v  a 2 s.co m*/
        }

        return isDelegableOperation;
    }
}

Related

  1. inArray(String str, String[] stringArray)
  2. inArray(String string, String[] strings)
  3. inArray(String value, String[] s)
  4. inArray(String value, String[] values)
  5. inArray(String[] attributes, String attribute)
  6. inArray(String[] haystack, String needle)
  7. inArray(T el, T[] array)
  8. inArray(T needle, T[] hayshack)
  9. inArray(T[] array, T element)