@Test public void testIteratorEmptyQueue() { CapacityQueue<Integer> queue = new CapacityQueue<>(DEFAULT_CAPACITY, DEFAULT_DROP_POLICY); Iterator<Integer> iterator = queue.iterator(); assertThat(iterator.hasNext()).isFalse(); }
@Override @NonNull public Iterator<E> iterator() { return mDeque.iterator(); }
CapacityQueue extends AbstractQueue<E> { @Override @NonNull public Iterator<E> iterator() { return mDeque.iterator(); } }
CapacityQueue extends AbstractQueue<E> { @Override @NonNull public Iterator<E> iterator() { return mDeque.iterator(); } CapacityQueue(int maxCapacity, @DropPolicy int dropPolicy); }
CapacityQueue extends AbstractQueue<E> { @Override @NonNull public Iterator<E> iterator() { return mDeque.iterator(); } CapacityQueue(int maxCapacity, @DropPolicy int dropPolicy); @Override int size(); @Override boolean offer(E e); @Override E poll(); @Override E peek(); @Override @NonNull Iterator<E> iterator(); }
CapacityQueue extends AbstractQueue<E> { @Override @NonNull public Iterator<E> iterator() { return mDeque.iterator(); } CapacityQueue(int maxCapacity, @DropPolicy int dropPolicy); @Override int size(); @Override boolean offer(E e); @Override E poll(); @Override E peek(); @Override @NonNull Iterator<E> iterator();  }