Java Queue Usage transferAllElementsFromListToQueue(final List elements, Queue queue)

Here you can find the source of transferAllElementsFromListToQueue(final List elements, Queue queue)

Description

transfer All Elements From List To Queue

License

LGPL

Declaration

public static <Type> void transferAllElementsFromListToQueue(final List<Type> elements, Queue<Type> queue) 

Method Source Code

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

import java.util.List;
import java.util.Queue;

public class Main {
    public static <Type> void transferAllElementsFromListToQueue(final List<Type> elements, Queue<Type> queue) {
        for (final Type element : elements) {
            queue.add(element);//  w w w  .j  a v a2 s  .c o m
        }
    }
}

Related

  1. queue(final Queue queue, final Object o, final Class clazz, final boolean removeNull)
  2. randomizeIndex(char[] array)
  3. scramble(Object object)
  4. setQueueValue(final Queue queue, final Object obj, final Class clazz, final boolean removeNull)
  5. toArrayTest(Queue q)

    HOME | Copyright © www.java2s.com 2016