public interface ConcurrentQueue<E>
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
void |
clear()
clear the queue of all elements
|
boolean |
contains(Object o) |
boolean |
isEmpty() |
boolean |
offer(E e)
Add element t to the ring
|
E |
peek()
return the first element in the queue
|
E |
poll()
remove the first element from the queue and return it
|
int |
remove(E[] e)
return all elements in the queue to the provided array, up to the size of the provided
array.
|
int |
size() |
boolean offer(E e)
e - - element to offerE poll()
E peek()
int size()
int capacity()
boolean isEmpty()
boolean contains(Object o)
o - - the object to testint remove(E[] e)
e - - The element arrayvoid clear()
Copyright © 2012–2018 Conversant Engineering. All rights reserved.