Package org.objectweb.asm.tree.analysis
Class CheckedArrayList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
org.objectweb.asm.tree.analysis.CheckedArrayList<T>
- Type Parameters:
T- the list element type.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
A
List implementation which checks its allocations with a ComputeLimits.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate T[]The list elements.private final ComputeLimitsThe limits for memory allocations.private intThe actual number of elements inelements.Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCheckedArrayList(CheckedArrayList<T> other) CheckedArrayList(ComputeLimits limits) -
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
elements
The list elements. -
size
private int sizeThe actual number of elements inelements. -
limits
The limits for memory allocations.
-
-
Constructor Details
-
CheckedArrayList
CheckedArrayList(ComputeLimits limits) -
CheckedArrayList
CheckedArrayList(CheckedArrayList<T> other)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
get
-
set
-
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
remove
-