Java Array Contain arrayContains(final T[] array, final T v)

Here you can find the source of arrayContains(final T[] array, final T v)

Description

array Contains

License

Open Source License

Declaration

public static <T> boolean arrayContains(final T[] array, final T v) 

Method Source Code

//package com.java2s;

public class Main {
    public static <T> boolean arrayContains(final T[] array, final T v) {
        for (final T e : array)
            if (e == v || v.equals(e))
                return true;
        return false;
    }//from  ww w. j  a v a  2 s  . com
}

Related

  1. arrayContains(final byte[] what, final byte[] b)
  2. arrayContains(final E[] arr, final E targetValue)
  3. arrayContains(final int[] array, final int v)
  4. arrayContains(final Object[] a, final Object v)
  5. arrayContains(final String[] array, String needle)
  6. arrayContains(int[] arr, int e)
  7. arrayContains(int[] arr, int ii)
  8. arrayContains(int[] array, int value)
  9. arrayContains(int[] array, int value)