E
- The type of data stored in the list.public class SizableArrayList<E> extends ArrayList<E> implements Sizable
ArrayList
whose size can be adjusted more efficiently.
When sizing down, elements at the end of the list are removed in one operation. When sizing up, null elements are appended to the list.
modCount
Constructor and Description |
---|
SizableArrayList() |
SizableArrayList(Collection<? extends E> c) |
SizableArrayList(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
ensureCapacity(int capacity) |
void |
setSize(int size) |
add, add, addAll, addAll, clear, clone, contains, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public SizableArrayList(int initialCapacity)
public SizableArrayList()
public SizableArrayList(Collection<? extends E> c)
public void ensureCapacity(int capacity)
ensureCapacity
in class ArrayList<E>
Copyright © 2015–2022 SciJava. All rights reserved.