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>

public abstract class FixedSizeList<T> extends AbstractList<T>
This provides a thin facade over AbstractList, to take care of bounds checking.
  • Constructor Details

    • FixedSizeList

      public FixedSizeList()
  • Method Details

    • get

      public T get(int index)
      Specified by:
      get in interface List<T>
      Specified by:
      get in class AbstractList<T>
    • readItem

      @Nonnull public abstract T readItem(int index)
      Reads the item at index
      Parameters:
      index - The index of the item. This is guaranteed to be in [0, size)
      Returns:
      The item at the given index