Java Deque Usage getArrayDeque()

Here you can find the source of getArrayDeque()

Description

get Array Deque

License

Open Source License

Declaration

public static <E> Deque<E> getArrayDeque() 

Method Source Code


//package com.java2s;
import java.util.ArrayDeque;

import java.util.Collection;

import java.util.Deque;

public class Main {

    public static <E> Deque<E> getArrayDeque() {
        return new ArrayDeque<E>();
    }/*w ww  . j av  a2s .co m*/

    public static <E> Deque<E> getArrayDeque(Collection<? extends E> collection) {
        return new ArrayDeque<E>(collection);
    }

    public static <E> Deque<E> getArrayDeque(int initialCapacity) {
        return new ArrayDeque<E>(initialCapacity);
    }
}

Related

  1. addSegment(Deque outputBuffer, String nextSegment)
  2. buildQueryString(final Map> params)
  3. createEmptyDequeArray(int size)
  4. emptyDeque()
  5. getLast(List list)
  6. pop(Deque deque, T def)
  7. removeLastTest(Deque q)
  8. splitWords(String text)

  9. HOME | Copyright © www.java2s.com 2016