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>
@NullMarked
@Internal
public class CachedSizeConcurrentLinkedQueue<E>
extends ConcurrentLinkedQueue<E>
- See Also:
-
Constructor Summary
-
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, toString
Methods inherited from class java.util.AbstractQueue
element, remove
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
Constructor Details
-
CachedSizeConcurrentLinkedQueue
public CachedSizeConcurrentLinkedQueue()
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceQueue<E>
- Overrides:
add
in classConcurrentLinkedQueue<E>
-
poll
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Overrides:
size
in classConcurrentLinkedQueue<E>
-