Java Collection Add addArray(java.util.Collection v, T array[])

Here you can find the source of addArray(java.util.Collection v, T array[])

Description

add Array

License

Apache License

Declaration

public static <T> java.util.Collection<T> addArray(java.util.Collection<T> v, T array[]) 

Method Source Code

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

public class Main {
    /************************************************************************/
    public static <T> java.util.Collection<T> addArray(java.util.Collection<T> v, T array[]) {
        if ((array == null) || (v == null)) {
            return v;
        }/* w w  w. j a  va 2 s  . co  m*/
        for (int i = 0; i < array.length; i++) {
            v.add(array[i]);
        }
        return v;
    }
}

Related

  1. addAllOrSame(Collection collection, Collection newElements)
  2. addAllSafe(Collection collection1, Collection collection2)
  3. addAllUncontained(Collection col1, Collection col2)
  4. addAllUnique(final Collection collection, final Collection values)
  5. addArray(Collection col, T[] array)
  6. addArrayToCollection(T[] array, Collection collection)
  7. addArrayToCollection(T[] array, Collection collection)
  8. addCheck(Collection c, Object o)
  9. addCollections(Collection... inCollections)