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:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Queue<E>
- Enclosing class:
- AbstractPushStreamImpl<T>
private static class AbstractPushStreamImpl.ArrayQueue<E> extends java.util.AbstractQueue<E> implements java.util.Queue<E>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
nextIndex
(package private) int
normalLength
(package private) int
size
(package private) java.lang.Object[]
store
-
Constructor Summary
Constructors Constructor Description ArrayQueue(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forcePush(E e)
java.util.Iterator<E>
iterator()
boolean
offer(E e)
E
peek()
E
poll()
int
size()
-
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
-
-