Class RecyclableArrayList
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess
-
Field Summary
Fields inherited from class AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<?> c) booleanaddAll(Collection<?> c) booleanReturnstrueif any elements where added or set.static RecyclableArrayListCreate a new emptyRecyclableArrayListinstancestatic RecyclableArrayListnewInstance(int minCapacity) Create a new emptyRecyclableArrayListinstance with the given capacity.booleanrecycle()Clear and recycle this instance.Methods inherited from class ArrayList
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, trimToSizeMethods inherited from class AbstractList
equals, hashCodeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, streamMethods inherited from interface List
containsAll, equals, hashCode
-
Method Details
-
newInstance
Create a new emptyRecyclableArrayListinstance -
newInstance
Create a new emptyRecyclableArrayListinstance with the given capacity. -
addAll
-
addAll
-
add
-
add
-
set
-
insertSinceRecycled
public boolean insertSinceRecycled()Returnstrueif any elements where added or set. This will be reset oncerecycle()was called. -
recycle
public boolean recycle()Clear and recycle this instance.
-