Serializable
, Iterable<E>
, Collection<E>
, Queue<E>
public class CachedSizeConcurrentLinkedQueue<E> extends ConcurrentLinkedQueue<E>
Constructor | Description |
---|---|
CachedSizeConcurrentLinkedQueue() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(E e) |
|
E |
poll() |
|
int |
size() |
containsAll
element, remove
containsAll, equals, hashCode, parallelStream, stream
addAll, clear, contains, forEach, isEmpty, iterator, offer, peek, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray, toString
public boolean add(E e)
add
in interface Collection<E>
add
in interface Queue<E>
add
in class ConcurrentLinkedQueue<E>
public E poll()
public int size()
size
in interface Collection<E>
size
in class ConcurrentLinkedQueue<E>
Copyright © 2019. All rights reserved.