Class 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>
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract T getOptional​(int index)  
      • 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
    • Constructor Detail

      • OptionalIndexedSection

        public OptionalIndexedSection()
    • 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.