@Test public void correctSizeAfterInstantiation() { ObjectArrayList<String> list = new ObjectArrayList<>(100); assertTrue(list.isEmpty()); assertEquals(0, list.size()); }
@Override public int size() { return size; }
ObjectArrayList extends AbstractObjectList<T> { @Override public int size() { return size; } }
ObjectArrayList extends AbstractObjectList<T> { @Override public int size() { return size; } ObjectArrayList();  ObjectArrayList(T[] elements); @SuppressWarnings("unchecked")  ObjectArrayList(int initialCapacity); }
ObjectArrayList extends AbstractObjectList<T> { @Override public int size() { return size; } ObjectArrayList();  ObjectArrayList(T[] elements); @SuppressWarnings("unchecked")  ObjectArrayList(int initialCapacity); void add(T element); void beforeInsert(int index, T element); @SuppressWarnings("unchecked") @Override Object clone(); @SuppressWarnings("unchecked") ObjectArrayList<T> copy(); @SuppressWarnings("unchecked") Q[] elements(); void elements(T[] elements); void ensureCapacity(int minCapacity); @Override @SuppressWarnings("unchecked") boolean equals(Object otherObj); @SuppressWarnings("unchecked") boolean forEach(ObjectProcedure<T> procedure); @SuppressWarnings("unchecked") T get(int index); @SuppressWarnings("unchecked") T getQuick(int index); int indexOfFromTo(T element, int from, int to); int lastIndexOfFromTo(T element, int from, int to); @SuppressWarnings("unchecked") AbstractObjectList<T> partFromTo(int from, int to); @Override void reverse(); void set(int index, T element); void setQuick(int index, T element); @Override void trimToSize(); @Override void removeFromTo(int fromIndex, int toIndex); @Override void replaceFromWith(int from, Collection<T> other); @Override void mergeSortFromTo(int from, int to); @Override void quickSortFromTo(int from, int to); @Override int size(); }
ObjectArrayList extends AbstractObjectList<T> { @Override public int size() { return size; } ObjectArrayList();  ObjectArrayList(T[] elements); @SuppressWarnings("unchecked")  ObjectArrayList(int initialCapacity); void add(T element); void beforeInsert(int index, T element); @SuppressWarnings("unchecked") @Override Object clone(); @SuppressWarnings("unchecked") ObjectArrayList<T> copy(); @SuppressWarnings("unchecked") Q[] elements(); void elements(T[] elements); void ensureCapacity(int minCapacity); @Override @SuppressWarnings("unchecked") boolean equals(Object otherObj); @SuppressWarnings("unchecked") boolean forEach(ObjectProcedure<T> procedure); @SuppressWarnings("unchecked") T get(int index); @SuppressWarnings("unchecked") T getQuick(int index); int indexOfFromTo(T element, int from, int to); int lastIndexOfFromTo(T element, int from, int to); @SuppressWarnings("unchecked") AbstractObjectList<T> partFromTo(int from, int to); @Override void reverse(); void set(int index, T element); void setQuick(int index, T element); @Override void trimToSize(); @Override void removeFromTo(int fromIndex, int toIndex); @Override void replaceFromWith(int from, Collection<T> other); @Override void mergeSortFromTo(int from, int to); @Override void quickSortFromTo(int from, int to); @Override int size();  }