Package org.jf.dexlib2.dexbacked
Class DexBackedDexFile.OptionalIndexedSection<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
org.jf.dexlib2.dexbacked.DexBackedDexFile.IndexedSection<T>
org.jf.dexlib2.dexbacked.DexBackedDexFile.OptionalIndexedSection<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
- Enclosing class:
DexBackedDexFile
public abstract static class DexBackedDexFile.OptionalIndexedSection<T>
extends DexBackedDexFile.IndexedSection<T>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jf.dexlib2.dexbacked.DexBackedDexFile.IndexedSection
getOffsetMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
OptionalIndexedSection
public OptionalIndexedSection()
-
-
Method Details
-
getOptional
- Parameters:
index- The index of the item, or -1 for a null item.- Returns:
- The value at the given index, or null if index is -1.
- Throws:
IndexOutOfBoundsException- if the index is out of bounds and is not -1.
-