Package com.destroystokyo.paper.utils
Class CachedSizeConcurrentLinkedQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.ConcurrentLinkedQueue<E>
com.destroystokyo.paper.utils.CachedSizeConcurrentLinkedQueue<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Queue<E>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
addAll, clear, contains, forEach, isEmpty, iterator, offer, peek, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
element, removeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
Constructor Details
-
CachedSizeConcurrentLinkedQueue
public CachedSizeConcurrentLinkedQueue()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceQueue<E>- Overrides:
addin classConcurrentLinkedQueue<E>
-
poll
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Overrides:
sizein classConcurrentLinkedQueue<E>
-