null elements to be added.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final ObjectPool. | |
| private boolean | |
| private static final ObjectPool | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be appended to this list element)Overrides java. Implements java. |
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Overrides java. Implements java. |
| public boolean | addAll(Collection<?>
collection containing elements to be added to this list c)Overrides java. Implements java. |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<?> collection containing elements to be added to this list c)Overrides java. Implements java. |
| private static void | |
| public boolean | |
| public static RecyclableArrayList | |
| public static RecyclableArrayList | newInstance(int minCapacity)
Create a new empty |
| public boolean | |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Overrides java. Implements java. |
| DEFAULT_INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int DEFAULT_INITIAL_CAPACITY | |
| handle | back to summary |
|---|---|
| private final ObjectPool. | |
| insertSinceRecycled | back to summary |
|---|---|
| private boolean insertSinceRecycled | |
| RECYCLER | back to summary |
|---|---|
| private static final ObjectPool<RecyclableArrayList> RECYCLER | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| RecyclableArrayList | back to summary |
|---|---|
| private RecyclableArrayList(ObjectPool. | |
| RecyclableArrayList | back to summary |
|---|---|
| private RecyclableArrayList(ObjectPool. | |
| add | back to summary |
|---|---|
| public boolean add(Object element) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list.
| |
| add | back to summary |
|---|---|
| public void add(int index, Object element) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). | |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<?> c) Overrides java. Implements java. Doc from java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<?> c) Overrides java. Implements java. Doc from java. Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.
| |
| checkNullElements | back to summary |
|---|---|
| private static void checkNullElements(Collection<?> c) | |
| insertSinceRecycled | back to summary |
|---|---|
| public boolean insertSinceRecycled() Returns | |
| newInstance | back to summary |
|---|---|
| public static RecyclableArrayList newInstance() Create a new empty | |
| newInstance | back to summary |
|---|---|
| public static RecyclableArrayList newInstance(int minCapacity) Create a new empty | |
| recycle | back to summary |
|---|---|
| public boolean recycle() Clear and recycle this instance. | |
| set | back to summary |
|---|---|
| public Object set(int index, Object element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element. | |