Package org.jf.dexlib2.dexbacked
Class DexBackedDexFile.OptionalIndexedSection<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.jf.dexlib2.dexbacked.DexBackedDexFile.IndexedSection<T>
-
- org.jf.dexlib2.dexbacked.DexBackedDexFile.OptionalIndexedSection<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
- Enclosing class:
- DexBackedDexFile
public abstract static class DexBackedDexFile.OptionalIndexedSection<T> extends DexBackedDexFile.IndexedSection<T>
-
-
Constructor Summary
Constructors Constructor Description OptionalIndexedSection()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract T
getOptional(int index)
-
Methods inherited from class org.jf.dexlib2.dexbacked.DexBackedDexFile.IndexedSection
getOffset
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
-
-
-
-
Method Detail
-
getOptional
@Nullable public abstract T getOptional(int index)
- 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:
java.lang.IndexOutOfBoundsException
- if the index is out of bounds and is not -1.
-
-