Class NonIndexOutofBoundsArrayList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
sootup.java.bytecode.frontend.conversion.NonIndexOutofBoundsArrayList<T>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
a modified ArrayList which grows instead of throwing IndexOutOfBounds and behaves more like a
(growing) array.
- Author:
- Markus Schmidt
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
NonIndexOutofBoundsArrayList
public NonIndexOutofBoundsArrayList(int i)
-
-
Method Details
-
get
returns null instead of IndexOutfBoundsException -
set
modified in the way that the underlying array grows if index >= size() and fills the gap with null elements instead of throwing an IndexOutOfBoundsException
-