@Test public void testValidConstructors() { ArrayDeque arrayDeque1 = new ArrayDeque(); ArrayDeque arrayDeque3 = new ArrayDeque(100); ArrayDeque arrayDeque2 = new ArrayDeque(10, 20); assertEquals(16, arrayDeque1.capacity()); assertEquals(128, arrayDeque3.capacity()); assertEquals(256, arrayDeque2.capacity()); }
public int capacity() { return elements.length; }
ArrayDeque { public int capacity() { return elements.length; } }
ArrayDeque { public int capacity() { return elements.length; } ArrayDeque();  ArrayDeque(int width, int height);  ArrayDeque(int numElements); }
ArrayDeque { public int capacity() { return elements.length; } 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 int capacity() { return elements.length; } 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();  }