@Test(groups = "1s", timeOut=60000) public void testClear() { CircularQueue<Integer> queue = create(); queue.addFirst(1); queue.addLast(2); assertFalse(queue.isEmpty()); queue.clear(); assertTrue(queue.isEmpty()); }
public void clear() { head = tail = size = 0; }
CircularQueue { public void clear() { head = tail = size = 0; } }
CircularQueue { public void clear() { head = tail = size = 0; } @SuppressWarnings({"unchecked"})  CircularQueue(int size); }
CircularQueue { public void clear() { head = tail = size = 0; } @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 void clear() { head = tail = size = 0; } @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);  }