public final class RecyclableArrayList extends ArrayList<Object>
null elements to be added.modCount| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object element) |
boolean |
addAll(Collection<?> c) |
boolean |
addAll(int index,
Collection<?> c) |
boolean |
insertSinceRecycled()
Returns
true if any elements where added or set. |
static RecyclableArrayList |
newInstance()
Create a new empty
RecyclableArrayList instance |
static RecyclableArrayList |
newInstance(int minCapacity)
Create a new empty
RecyclableArrayList instance with the given capacity. |
boolean |
recycle()
Clear and recycle this instance.
|
Object |
set(int index,
Object element) |
clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic static RecyclableArrayList newInstance()
RecyclableArrayList instancepublic static RecyclableArrayList newInstance(int minCapacity)
RecyclableArrayList instance with the given capacity.public boolean addAll(Collection<?> c)
public boolean addAll(int index,
Collection<?> c)
public boolean add(Object element)
public void add(int index,
Object element)
public boolean insertSinceRecycled()
true if any elements where added or set. This will be reset once recycle() was called.public boolean recycle()
Copyright © 2008–2024 The Netty Project. All rights reserved.