@Test(groups = "1s", timeOut=60000) public void testRemove() { CircularQueue<Integer> queue = create(); queue.addFirst(0); queue.addFirst(1); queue.addFirst(2); queue.addFirst(3); queue.addFirst(2); queue.remove(Integer.valueOf(2)); assertEquals(queue.pollFirst(), Integer.valueOf(3)); assertEquals(queue.pollFirst(), Integer.valueOf(2)); assertEquals(queue.pollFirst(), Integer.valueOf(1)); assertEquals(queue.pollFirst(), Integer.valueOf(0)); }
public E remove() { return pollAndClean(false); }
CircularQueue { public E remove() { return pollAndClean(false); } }
CircularQueue { public E remove() { return pollAndClean(false); } @SuppressWarnings({"unchecked"})  CircularQueue(int size); }
CircularQueue { public E remove() { return pollAndClean(false); } @SuppressWarnings({"unchecked"})  CircularQueue(int size); boolean isEmpty(); void clear(); int size(); E get(int index); boolean addFirst(E e); boolean addLast(E e); int indexOf(E elem); E pollFirst(); E pollLast(); E remove(); E remove(int index); boolean remove(E e); }
CircularQueue { public E remove() { return pollAndClean(false); } @SuppressWarnings({"unchecked"})  CircularQueue(int size); boolean isEmpty(); void clear(); int size(); E get(int index); boolean addFirst(E e); boolean addLast(E e); int indexOf(E elem); E pollFirst(); E pollLast(); E remove(); E remove(int index); boolean remove(E e);  }