@Test(expected = NoSuchElementException.class) public void testInvalidGetFirst() { ArrayDeque arrayDeque = new ArrayDeque(); arrayDeque.getFirst(); }
public E getFirst() { E element = elements[head]; if (element == null) { throw new NoSuchElementException("No element at " + ((tail - 1) & (elements.length - 1))); } return element; }
ArrayDeque { public E getFirst() { E element = elements[head]; if (element == null) { throw new NoSuchElementException("No element at " + ((tail - 1) & (elements.length - 1))); } return element; } }
ArrayDeque { public E getFirst() { E element = elements[head]; if (element == null) { throw new NoSuchElementException("No element at " + ((tail - 1) & (elements.length - 1))); } return element; } ArrayDeque();  ArrayDeque(int width, int height);  ArrayDeque(int numElements); }
ArrayDeque { public E getFirst() { E element = elements[head]; if (element == null) { throw new NoSuchElementException("No element at " + ((tail - 1) & (elements.length - 1))); } return element; } ArrayDeque();  ArrayDeque(int width, int height);  ArrayDeque(int numElements); void addFirst(E element); void addLast(E element); E getFirst(); E getLast(); E get(int index); void set(int index, E element); int capacity(); int size(); Object[] toArray(); }
ArrayDeque { public E getFirst() { E element = elements[head]; if (element == null) { throw new NoSuchElementException("No element at " + ((tail - 1) & (elements.length - 1))); } return element; } ArrayDeque();  ArrayDeque(int width, int height);  ArrayDeque(int numElements); void addFirst(E element); void addLast(E element); E getFirst(); E getLast(); E get(int index); void set(int index, E element); int capacity(); int size(); Object[] toArray();  }