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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.util.concurrent.ConcurrentLinkedQueueaddAll, clear, contains, forEach, isEmpty, iterator, offer, peek, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueueelement, removeMethods inherited from class java.util.AbstractCollectioncontainsAllMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectioncontainsAll, equals, hashCode, parallelStream, stream, toArray
- 
Constructor Details- 
CachedSizeConcurrentLinkedQueuepublic CachedSizeConcurrentLinkedQueue()
 
- 
- 
Method Details- 
add- Specified by:
- addin interface- Collection<E>
- Specified by:
- addin interface- Queue<E>
- Overrides:
- addin class- ConcurrentLinkedQueue<E>
 
- 
poll
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<E>
- Overrides:
- sizein class- ConcurrentLinkedQueue<E>
 
 
-