public class ResizeableArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, Serializable
List implementation, backed by an array, taht supports resizing.
This class supports the reuse of arrays across cache instances, reducing the number of
temporary objects created by the Alfresco Solr indexing service.modCount| Constructor and Description |
|---|
ResizeableArrayList() |
ResizeableArrayList(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
<T> void |
copyFrom(ResizeableArrayList<T> from)
Copy elements from from into this instance
|
E |
get(int index) |
void |
resize(int minSize)
Resize the underlying to at least minSize.
|
E |
set(int index,
E value) |
int |
size() |
void |
sort(Comparator<? super E> comparator)
Sort the elements, in-place, contained in this list using
Comparator# |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic ResizeableArrayList()
public ResizeableArrayList(int initialSize)
public E get(int index)
public void resize(int minSize)
minSize - IllegalStateException - if the instance is not active.public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public <T> void copyFrom(ResizeableArrayList<T> from)
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void sort(Comparator<? super E> comparator)
Comparator#sort in interface List<E>comparator - The Comparator to sort withCopyright © 2005–2020 Alfresco Software. All rights reserved.