@Test public void testIterator() throws Exception { final int queueSize = 3000; String id = "testIterator"; FbQueue<String> queue = makeQueue(id, queueSize); for(int i = 0; i < queueSize; ++i) { queue.add("<" + i + ">"); } assertIterator(queue, Integer.MAX_VALUE, 0); assertIterator(queue, 1000, 2000); assertEquals(queueSize, queue.size()); }
@Override public Iterator<E> iterator() { return iterator(Integer.MAX_VALUE); }
FbQueue extends AbstractQueue<E> implements FileBased { @Override public Iterator<E> iterator() { return iterator(Integer.MAX_VALUE); } }
FbQueue extends AbstractQueue<E> implements FileBased { @Override public Iterator<E> iterator() { return iterator(Integer.MAX_VALUE); } private  FbQueue(Builder<E> b); }
FbQueue extends AbstractQueue<E> implements FileBased { @Override public Iterator<E> iterator() { return iterator(Integer.MAX_VALUE); } private  FbQueue(Builder<E> b); String getId(); int getMaxSize(); int getMaxItemsInFile(); static Builder<E> builder(FbAdapter<E> adapter); @Override Iterator<E> iterator(); Iterator<E> iterator(int last); @Override int size(); @Override boolean offer(E e); void push(E e); @Override E poll(); @Override E peek(); @Override void close(); }
FbQueue extends AbstractQueue<E> implements FileBased { @Override public Iterator<E> iterator() { return iterator(Integer.MAX_VALUE); } private  FbQueue(Builder<E> b); String getId(); int getMaxSize(); int getMaxItemsInFile(); static Builder<E> builder(FbAdapter<E> adapter); @Override Iterator<E> iterator(); Iterator<E> iterator(int last); @Override int size(); @Override boolean offer(E e); void push(E e); @Override E poll(); @Override E peek(); @Override void close();  }