Class FixedSizeList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
org.jf.dexlib2.dexbacked.util.FixedSizeList<T>
- Type Parameters:
T- The type of the item that this list contains
- All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>
This provides a thin facade over AbstractList, to take care of bounds checking.
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
FixedSizeList
public FixedSizeList()
-
-
Method Details
-
get
-
readItem
Reads the item atindex- Parameters:
index- The index of the item. This is guaranteed to be in [0, size)- Returns:
- The item at the given index
-