public class PushingStackQueue<E>
extends java.util.concurrent.ArrayBlockingQueue<E>
| Constructor and Description |
|---|
PushingStackQueue(int cap,
boolean b,
java.util.Collection<? extends E> collection,
java.util.function.Supplier<E> supplier) |
PushingStackQueue(int cap,
boolean b,
java.util.function.Supplier<E> supplier) |
PushingStackQueue(int cap,
java.util.function.Supplier<E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
E |
element() |
boolean |
offer(E e) |
boolean |
offer(E e,
long l,
java.util.concurrent.TimeUnit timeUnit) |
E |
peek() |
E |
remove() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> collection) |
boolean |
removeIf(java.util.function.Predicate<? super E> predicate) |
clear, contains, drainTo, drainTo, iterator, poll, poll, put, remainingCapacity, size, spliterator, take, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic PushingStackQueue(int cap,
java.util.function.Supplier<E> supplier)
public PushingStackQueue(int cap,
boolean b,
java.util.function.Supplier<E> supplier)
public E peek()
public boolean offer(E e)
public E element()
public boolean add(E e)
public boolean addAll(java.util.Collection<? extends E> collection)
public boolean offer(E e, long l, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
public boolean removeAll(java.util.Collection<?> collection)
public E remove()
public boolean removeIf(java.util.function.Predicate<? super E> predicate)