Class FixedSizeSet<T>

java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
org.jf.dexlib2.dexbacked.util.FixedSizeSet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>

public abstract class FixedSizeSet<T> extends AbstractSet<T>
This provides a wrapper around AbstractSet to allow easy implementation when backed by a list that can be randomly accessed.
  • Constructor Details

    • FixedSizeSet

      public FixedSizeSet()
  • Method Details

    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Collection<T>
      Specified by:
      iterator in interface Iterable<T>
      Specified by:
      iterator in interface Set<T>
      Specified by:
      iterator in class AbstractCollection<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