Java Deque Usage emptyDeque()

Here you can find the source of emptyDeque()

Description

empty Deque

License

Apache License

Declaration

@SuppressWarnings("unchecked")
    public static <T> Deque<T> emptyDeque() 

Method Source Code


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

import java.util.ArrayDeque;

import java.util.Deque;

public class Main {
    @SuppressWarnings("rawtypes")
    public static final Deque EMPTY_DEQUE = new ArrayDeque();

    @SuppressWarnings("unchecked")
    public static <T> Deque<T> emptyDeque() {
        return EMPTY_DEQUE;
    }//from  w  w w.j av  a 2 s .  c o m
}

Related

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

    HOME | Copyright © www.java2s.com 2016