Package org.osgi.util.pushstream
Class AbstractPushStreamImpl.ArrayQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.osgi.util.pushstream.AbstractPushStreamImpl.ArrayQueue<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Queue<E>
- Enclosing class:
- AbstractPushStreamImpl<T>
private static class AbstractPushStreamImpl.ArrayQueue<E>
extends AbstractQueue<E>
implements Queue<E>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) int
(package private) final Object[]
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
store
-
normalLength
int normalLength -
nextIndex
int nextIndex -
size
int size
-
-
Constructor Details
-
ArrayQueue
ArrayQueue(int capacity)
-
-
Method Details
-
offer
-
forcePush
-
poll
-
peek
-
iterator
- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in classAbstractCollection<E>
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in classAbstractCollection<E>
-