Android Collection Append Append(Collection collection, T[][] array_array)

Here you can find the source of Append(Collection collection, T[][] array_array)

Description

Append

License

LGPL

Declaration

public final static <T> void Append(Collection<T> collection,
            T[][] array_array) 

Method Source Code

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

import java.util.Collection;

public class Main {
    public final static <T> void Append(Collection<T> collection, T[] array) {
        if (collection != null && array != null && array.length > 0) {
            for (T element : array) {
                collection.add(element);
            }/*w ww  . ja va  2s  .  c o m*/
        }
    }

    public final static <T> void Append(Collection<T> collection,
            T[][] array_array) {
        if (collection != null && array_array != null
                && array_array.length > 0) {
            for (T[] array : array_array) {
                Append(collection, array);
            }
        }
    }
}

Related

  1. Append(Collection collection, T[] array)