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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin classAbstractCollection<E>
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein classAbstractCollection<E>
-