Java Collection Add addAllFirst(Collection col, Deque deque)

Here you can find the source of addAllFirst(Collection col, Deque deque)

Description

add All First

License

Apache License

Declaration

public static <T> void addAllFirst(Collection<T> col, Deque<T> deque) 

Method Source Code


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

import java.util.*;

public class Main {
    public static <T> void addAllFirst(Collection<T> col, Deque<T> deque) {
        for (T item : col) {
            deque.addFirst(item);//from   w w  w.  j av a 2 s  .co m
        }
    }
}

Related

  1. addAll(Iterable iterable, Collection collection)
  2. addAll(Iterable iterable, Collection collection)
  3. addAll(S collection, T... values)
  4. addAll(T coll, Collection other)
  5. addAll(T[] lhs, Collection rhs)
  6. addAllIfNotNull(final Collection collection, final Collection c)
  7. addAllIfNotNull(final Collection collection, final Collection values)
  8. addAllIfSet(Collection target, Collection c)
  9. addAllIgnoreNull(Collection c, T... elements)